[FFmpeg-soc] [soc]: r1446 - rv40/rv34.c

kostya subversion at mplayerhq.hu
Sun Nov 18 09:00:39 CET 2007


Author: kostya
Date: Sun Nov 18 09:00:39 2007
New Revision: 1446

Log:
Read slice offset in native endianness

Modified:
   rv40/rv34.c

Modified: rv40/rv34.c
==============================================================================
--- rv40/rv34.c	(original)
+++ rv40/rv34.c	Sun Nov 18 09:00:39 2007
@@ -1409,7 +1409,7 @@ int ff_rv34_decode_init(AVCodecContext *
 static int get_slice_offset(AVCodecContext *avctx, uint8_t *buf, int n)
 {
     if(avctx->slice_count) return avctx->slice_offset[n];
-    else                   return AV_RL32(buf + n*8);
+    else                   return AV_RL32(buf + n*8 - 4) == 1 ? AV_RL32(buf + n*8) :  AV_RB32(buf + n*8);
 }
 
 int ff_rv34_decode_frame(AVCodecContext *avctx,



More information about the FFmpeg-soc mailing list