[Ffmpeg-cvslog] r5637 - trunk/libavformat/movenc.c

michael subversion
Thu Jul 6 14:27:43 CEST 2006


Author: michael
Date: Thu Jul  6 14:27:43 2006
New Revision: 5637

Modified:
   trunk/libavformat/movenc.c

Log:
check for unparsed AMR input


Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Thu Jul  6 14:27:43 2006
@@ -1532,6 +1532,10 @@
             len += packed_size[(pkt->data[len] >> 3) & 0x0F];
             samplesInChunk++;
         }
+        if(samplesInChunk > 1){
+            av_log(s, AV_LOG_ERROR, "fatal error, input is not a single packet, inplement a AVParser for it\n");
+            return -1;
+        }
     } else if (trk->sampleSize)
         samplesInChunk = size/trk->sampleSize;
     else




More information about the ffmpeg-cvslog mailing list