comparison h264.c @ 7362:443fdc440854 libavcodec

Reset prev_frame_num for idr frames as required by the spec.
author michael
date Thu, 24 Jul 2008 00:45:18 +0000
parents f749afdac1e4
children 6d718739ee8e
comparison
equal deleted inserted replaced
7361:f749afdac1e4 7362:443fdc440854
3301 for(i=0; i<h->short_ref_count; i++){ 3301 for(i=0; i<h->short_ref_count; i++){
3302 unreference_pic(h, h->short_ref[i], 0); 3302 unreference_pic(h, h->short_ref[i], 0);
3303 h->short_ref[i]= NULL; 3303 h->short_ref[i]= NULL;
3304 } 3304 }
3305 h->short_ref_count=0; 3305 h->short_ref_count=0;
3306 h->prev_frame_num= 0;
3306 } 3307 }
3307 3308
3308 /* forget old pics after a seek */ 3309 /* forget old pics after a seek */
3309 static void flush_dpb(AVCodecContext *avctx){ 3310 static void flush_dpb(AVCodecContext *avctx){
3310 H264Context *h= avctx->priv_data; 3311 H264Context *h= avctx->priv_data;