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

michael subversion
Fri Jul 18 22:59:17 CEST 2008


Author: michael
Date: Fri Jul 18 22:59:17 2008
New Revision: 14283

Log:
Make frames non reference by default, so they are disposed of automatically
in MPV_frame_start() if we break out due to an error at a random place.
Fixes issue334


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Fri Jul 18 22:59:17 2008
@@ -2259,6 +2259,7 @@ static int frame_start(H264Context *h){
         memset(h->slice_table, -1, (s->mb_height*s->mb_stride-1) * sizeof(uint8_t));
 
 //    s->decode= (s->flags&CODEC_FLAG_PSNR) || !s->encoding || s->current_picture.reference /*|| h->contains_intra*/ || 1;
+    s->current_picture_ptr->reference= 0;
     return 0;
 }
 




More information about the ffmpeg-cvslog mailing list