diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-10-17 21:35:28 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-10-17 21:35:28 +0200 |
commit | a3accd0c3768933f15422c9dec596da0f436d786 (patch) | |
tree | 93858a0c53d8e3290d4dea4c1793a3bf8dde2603 /libavformat/cafenc.c | |
parent | 552d2cb6f75170621ac37abac249dfdac893bcb6 (diff) | |
download | ffmpeg-a3accd0c3768933f15422c9dec596da0f436d786.tar.gz |
lavf/cafenc: Allow muxing opus.
QuickTime does not require the (unknown) kuki chunk for decoding.
Diffstat (limited to 'libavformat/cafenc.c')
-rw-r--r-- | libavformat/cafenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index f550cd965a..211b046563 100644 --- a/libavformat/cafenc.c +++ b/libavformat/cafenc.c @@ -81,6 +81,8 @@ static uint32_t samples_per_packet(enum AVCodecID codec_id, int channels, int bl return 320; case AV_CODEC_ID_MP1: return 384; + case AV_CODEC_ID_OPUS: + return 960; case AV_CODEC_ID_MP2: case AV_CODEC_ID_MP3: return 1152; @@ -117,7 +119,6 @@ static int caf_write_header(AVFormatContext *s) switch (par->codec_id) { case AV_CODEC_ID_AAC: - case AV_CODEC_ID_OPUS: av_log(s, AV_LOG_ERROR, "muxing codec currently unsupported\n"); return AVERROR_PATCHWELCOME; } |