[vlc-commits] codec: videotoolbox: call SetH264DecoderInfo for avcC
Thomas Guillem
git at videolan.org
Wed Sep 13 11:15:19 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Sep 13 11:07:58 2017 +0200| [126812d820182e8e6336a3d26665f207c2185f5a] | committer: Thomas Guillem
codec: videotoolbox: call SetH264DecoderInfo for avcC
In order to fill the video_format_t from the SPS.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=126812d820182e8e6336a3d26665f207c2185f5a
---
modules/codec/videotoolbox.m | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index a48d66dcd0..f0cea3fd70 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -877,9 +877,12 @@ static int SetupDecoderExtradata(decoder_t *p_dec)
assert(p_sys->hh.pf_process_block != NULL);
if (p_dec->fmt_in.p_extra)
+ {
p_sys->extradataInfo = ExtradataInfoCreate(CFSTR("avcC"),
p_dec->fmt_in.p_extra,
p_dec->fmt_in.i_extra);
+ SetH264DecoderInfo(p_dec, p_sys->extradataInfo);
+ }
else
{
/* AnnexB case, we'll get extradata from first input blocks */
More information about the vlc-commits
mailing list