videotoolbox: require I-frame for h264
commit60f8fff1d35b7bbd264a70bc6a6a930a344870a0
authorThomas Guillem <thomas@gllm.fr>
Mon, 23 Jul 2018 12:49:31 +0000 (23 14:49 +0200)
committerThomas Guillem <thomas@gllm.fr>
Tue, 24 Jul 2018 12:02:15 +0000 (24 14:02 +0200)
tree0414998eb966e95944767a7ccb0d59beb1f9456b
parent09d421a20851e1c49aa98e117957dd118620fae4
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.
modules/codec/videotoolbox.m