[FFmpeg-cvslog] r24450 - trunk/libavcodec/h264_parser.c

bcoudurier subversion
Fri Jul 23 02:34:09 CEST 2010


Author: bcoudurier
Date: Fri Jul 23 02:34:09 2010
New Revision: 24450

Log:
In h264 parser, return immediately if buf_size is 0, avoid printing
erroneous message for last frame.

Modified:
   trunk/libavcodec/h264_parser.c

Modified: trunk/libavcodec/h264_parser.c
==============================================================================
--- trunk/libavcodec/h264_parser.c	Fri Jul 23 02:27:17 2010	(r24449)
+++ trunk/libavcodec/h264_parser.c	Fri Jul 23 02:34:09 2010	(r24450)
@@ -127,6 +127,9 @@ static inline int parse_nal_units(AVCode
     h->sei_cpb_removal_delay        = -1;
     h->sei_buffering_period_present =  0;
 
+    if (!buf_size)
+        return 0;
+
     for(;;) {
         int src_length, dst_length, consumed;
         buf = ff_find_start_code(buf, buf_end, &state);



More information about the ffmpeg-cvslog mailing list