comparison h264.c @ 5926:77403dc808cd libavcodec

Call mpegvideo flush routine on h264 flush. Needed in particular to clear last_picture_ptr, next_picture_ptr for proper picture management. Prevents crashes in error concealer following seeks. Fixes Roundup issue 189.
author heydowns
date Sat, 17 Nov 2007 03:04:21 +0000
parents 4d8ecacecccb
children bd5f4dc81fbe
comparison
equal deleted inserted replaced
5925:4127277ac925 5926:77403dc808cd
3340 h->delayed_output_pic= NULL; 3340 h->delayed_output_pic= NULL;
3341 idr(h); 3341 idr(h);
3342 if(h->s.current_picture_ptr) 3342 if(h->s.current_picture_ptr)
3343 h->s.current_picture_ptr->reference= 0; 3343 h->s.current_picture_ptr->reference= 0;
3344 h->s.first_field= 0; 3344 h->s.first_field= 0;
3345 ff_mpeg_flush(avctx);
3345 } 3346 }
3346 3347
3347 /** 3348 /**
3348 * Find a Picture in the short term reference list by frame number. 3349 * Find a Picture in the short term reference list by frame number.
3349 * @param frame_num frame number to search for 3350 * @param frame_num frame number to search for