[vlc-commits] codec: avcodec: fix drain on eos
Francois Cartegnie
git at videolan.org
Tue Jun 13 09:14:22 CEST 2017
vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jun 12 23:40:04 2017 +0200| [35fe8fecf1d79e48627140e29d23a7a44c65cb7e] | committer: Francois Cartegnie
codec: avcodec: fix drain on eos
bp of 84c871bb019a5f84070f5ad3d0b609cca2a001ab
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=35fe8fecf1d79e48627140e29d23a7a44c65cb7e
---
modules/codec/avcodec/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 971238612c..1bcad21ad2 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -610,7 +610,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
post_mt( p_sys );
av_init_packet( &pkt );
- if( p_block )
+ if( p_block && p_block->i_buffer > 0 )
{
pkt.data = p_block->p_buffer;
pkt.size = p_block->i_buffer;
More information about the vlc-commits
mailing list