diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-09-20 03:31:48 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-09-20 03:31:48 +0200 |
commit | b4093e60c51af493a6dad7819264ef769736227f (patch) | |
tree | a125588e37150443b2323af71c79bddf95d04ca1 /libavformat/cafdec.c | |
parent | e428e5ded6266d8e68cecbd9953fdaba55b097e1 (diff) | |
download | ffmpeg-b4093e60c51af493a6dad7819264ef769736227f.tar.gz |
lavf/caf: Support demuxing Opus.
Introduced in macOS High Sierra and iOS 11.
Diffstat (limited to 'libavformat/cafdec.c')
-rw-r--r-- | libavformat/cafdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c index 19939d3a85..4e47addc02 100644 --- a/libavformat/cafdec.c +++ b/libavformat/cafdec.c @@ -166,6 +166,8 @@ static int read_kuki_chunk(AVFormatContext *s, int64_t size) } avio_skip(pb, size - ALAC_NEW_KUKI); } + } else if (st->codecpar->codec_id == AV_CODEC_ID_OPUS) { + avio_skip(pb, size); } else { av_freep(&st->codecpar->extradata); if (ff_get_extradata(s, st->codecpar, pb, size) < 0) |