[vlc-commits] codec: avcodec: missing context reset after flush

Francois Cartegnie git at videolan.org
Wed Apr 25 11:53:19 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Apr 24 18:18:58 2018 +0200| [db4fae0a9b997f5946241f2c17c9c836ff717c28] | committer: Francois Cartegnie

codec: avcodec: missing context reset after flush

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db4fae0a9b997f5946241f2c17c9c836ff717c28
---

 modules/codec/avcodec/video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 13223e0e59..32dcdfbf04 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1248,6 +1248,7 @@ static int DecodeVideo( decoder_t *p_dec, block_t *p_block )
             block_Release( p_block );
             p_block = NULL; /* output only */
         }
+        avcodec_flush_buffers( p_sys->p_context );
     }
 
     return DecodeBlock( p_dec, pp_block );



More information about the vlc-commits mailing list