[vlc-commits] codec: VideoToolbox: drain on eos
Francois Cartegnie
git at videolan.org
Mon Jun 12 17:52:27 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jun 12 17:51:31 2017 +0200| [209a77872b7241328f97b6ceffe183091004b226] | committer: Francois Cartegnie
codec: VideoToolbox: drain on eos
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=209a77872b7241328f97b6ceffe183091004b226
---
modules/codec/videotoolbox.m | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index e099514eae..9e09e26345 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1306,7 +1306,11 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
VTDecompressionSessionDecodeFrame(p_sys->session, sampleBuffer,
decoderFlags, p_info, &flagOut);
if (HandleVTStatus(p_dec, status) == VLC_SUCCESS)
+ {
p_sys->b_vt_feed = true;
+ if( p_block->i_flags & BLOCK_FLAG_END_OF_SEQUENCE )
+ Drain( p_dec );
+ }
else
{
bool b_abort = false;
More information about the vlc-commits
mailing list