diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-10-22 13:03:12 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-10-22 13:05:16 +0200 |
commit | d82633c4e30bc3312c600e43422bb1c7730e6437 (patch) | |
tree | 3df957f0015c9fffb26d18cdacf736751c8a1495 | |
parent | cc2a6e493bdc93cb23e71a5d519087aa4a648357 (diff) |
ffdec: don't destroy the parser state
When we flush the parser cache, we only need to clear the bytes of the cache,
not the complete state of the cache. In the case of H264 this doesn't require
the parser to receive a new SPS/PPS after a DISCONT buffer.
-rw-r--r-- | ext/ffmpeg/gstffmpegdec.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index b959598..b09b12e 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -2285,14 +2285,6 @@ gst_ffmpegdec_flush_pcache (GstFFMpegDec * ffmpegdec) gst_buffer_unref (ffmpegdec->pcache); ffmpegdec->pcache = NULL; } - if (ffmpegdec->pctx) { - GstFFMpegDecClass *oclass; - - oclass = (GstFFMpegDecClass *) (G_OBJECT_GET_CLASS (ffmpegdec)); - - av_parser_close (ffmpegdec->pctx); - ffmpegdec->pctx = av_parser_init (oclass->in_plugin->id); - } } static gboolean |