[FFmpeg-cvslog] r9543 - trunk/libavformat/rmdec.c

mru subversion
Sun Jul 8 15:42:53 CEST 2007


Author: mru
Date: Sun Jul  8 15:42:52 2007
New Revision: 9543

Log:
avoid uninitialised variable warning and clarify code


Modified:
   trunk/libavformat/rmdec.c

Modified: trunk/libavformat/rmdec.c
==============================================================================
--- trunk/libavformat/rmdec.c	(original)
+++ trunk/libavformat/rmdec.c	Sun Jul  8 15:42:52 2007
@@ -608,7 +608,7 @@ resync:
     /* for AC3, needs to swap bytes */
     if (st->codec->codec_id == CODEC_ID_AC3) {
         ptr = pkt->data;
-        for(j=0;j<len;j+=2) {
+        for(j=0;j<pkt->size;j+=2) {
             FFSWAP(int, ptr[0], ptr[1]);
             ptr += 2;
         }




More information about the ffmpeg-cvslog mailing list