vlc/vlc-3.0 | branch: master | Thomas Guillem <[email protected]> | Mon Jul 23 
14:49:31 2018 +0200| [db57522832b36d8f354f850a0e90b319e7923195] | committer: 
Thomas Guillem

videotoolbox: require I-frame for h264

This fixes BadDataErr when playing streams in the middle (when video track is
disabled and enabled).

This happened a lot when running chromecast in the middle of playback.

Furthermore, a BadDataErr from the decoder, while the videotoolbox encoder is
running cause random crashes.

(cherry picked from commit 60f8fff1d35b7bbd264a70bc6a6a930a344870a0)
Signed-off-by: Thomas Guillem <[email protected]>

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

 modules/codec/videotoolbox.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index b34929c797..c55c33422b 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1418,6 +1418,7 @@ static int OpenDecoder(vlc_object_t *p_this)
             p_sys->pf_get_extradata = GetDecoderExtradataH264;
             p_sys->pf_fill_reorder_info = FillReorderInfoH264;
             p_sys->b_poc_based_reorder = true;
+            p_sys->b_vt_need_keyframe = true;
             break;
 
         case kCMVideoCodecType_HEVC:

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to