[FFmpeg-cvslog] r19335 - trunk/libavcodec/h264.c

astrange subversion
Sat Jul 4 09:46:58 CEST 2009


Author: astrange
Date: Sat Jul  4 09:46:58 2009
New Revision: 19335

Log:
H.264: Check the return value of decode_vui_parameters()

Files with invalid VUI are now rejected like
other invalid SPS are.

Fixes issue1231.

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Fri Jul  3 13:31:09 2009	(r19334)
+++ trunk/libavcodec/h264.c	Sat Jul  4 09:46:58 2009	(r19335)
@@ -7278,7 +7278,8 @@ int ff_h264_decode_seq_parameter_set(H26
 
     sps->vui_parameters_present_flag= get_bits1(&s->gb);
     if( sps->vui_parameters_present_flag )
-        decode_vui_parameters(h, sps);
+        if (decode_vui_parameters(h, sps) < 0)
+            goto fail;
 
     if(s->avctx->debug&FF_DEBUG_PICT_INFO){
         av_log(h->s.avctx, AV_LOG_DEBUG, "sps:%u profile:%d/%d poc:%d ref:%d %dx%d %s %s crop:%d/%d/%d/%d %s %s %d/%d\n",



More information about the ffmpeg-cvslog mailing list