[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.115,1.116
Loren Merritt CVS
lorenm
Tue May 3 08:54:01 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv10725
Modified Files:
h264.c
Log Message:
clear the DPB after seeking.
Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- h264.c 30 Apr 2005 21:43:56 -0000 1.115
+++ h264.c 3 May 2005 06:53:59 -0000 1.116
@@ -3457,6 +3457,16 @@
h->short_ref_count=0;
}
+/* forget old pics after a seek */
+static void flush_dpb(AVCodecContext *avctx){
+ H264Context *h= avctx->priv_data;
+ int i;
+ for(i=0; i<16; i++)
+ h->delayed_pic[i]= NULL;
+ h->delayed_output_pic= NULL;
+ idr(h);
+}
+
/**
*
* @return the removed picture or NULL if an error occures
@@ -7208,6 +7218,7 @@
decode_end,
decode_frame,
/*CODEC_CAP_DRAW_HORIZ_BAND |*/ CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
+ .flush= flush_dpb,
};
AVCodecParser h264_parser = {
More information about the ffmpeg-cvslog
mailing list