ffdec: don't destroy the parser state
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 22 Oct 2010 11:03:12 +0000 (13:03 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 22 Oct 2010 11:05:16 +0000 (13:05 +0200)
commitd82633c4e30bc3312c600e43422bb1c7730e6437
tree3df957f0015c9fffb26d18cdacf736751c8a1495
parentcc2a6e493bdc93cb23e71a5d519087aa4a648357
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.
ext/ffmpeg/gstffmpegdec.c