[vlc-commits] videotoolbox: clean old parameter sets on restart
Thomas Guillem
git at videolan.org
Tue Jan 9 18:19:52 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jan 9 09:28:10 2018 +0100| [40a40187a33c38e52fa4d7704474c13bf0c689ed] | committer: Thomas Guillem
videotoolbox: clean old parameter sets on restart
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=40a40187a33c38e52fa4d7704474c13bf0c689ed
---
modules/codec/videotoolbox.m | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 2a990d8fbe..c14abf69d1 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1781,6 +1781,11 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
/* Session will be started by Late Start code block */
StopVideoToolbox(p_dec);
+ if (p_dec->fmt_in.i_extra == 0)
+ {
+ /* Clean old parameter sets since they may be corrupt */
+ hxxx_helper_clean(&p_sys->hh);
+ }
vlc_mutex_lock(&p_sys->lock);
p_sys->vtsession_status = VTSESSION_STATUS_OK;
More information about the vlc-commits
mailing list