[vlc-commits] codec: avcodec: remove drain on discontinuity

Francois Cartegnie git at videolan.org
Wed Apr 15 20:14:00 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 15 12:08:24 2020 +0200| [8174b70d703ededb0648d83778b52c45c8b44f92] | committer: Francois Cartegnie

codec: avcodec: remove drain on discontinuity

regression from 44cc0d5633697d58f1b88c4f71b83250ed794efd
creates glitches on legit streams

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

 modules/codec/avcodec/video.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index b2d5271755..c359dffe57 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1356,9 +1356,6 @@ static int DecodeVideo( decoder_t *p_dec, block_t *p_block )
     if( p_block &&
         p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) )
     {
-        /* Drain */
-        if( p_block->i_flags & BLOCK_FLAG_DISCONTINUITY )
-            DecodeBlock( p_dec, NULL );
         p_sys->i_late_frames = 0;
         p_sys->i_last_output_frame = -1;
         p_sys->framedrop = FRAMEDROP_NONE;



More information about the vlc-commits mailing list