diff options
author | James Almer <jamrial@gmail.com> | 2018-02-05 22:26:26 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-02-06 23:08:42 -0300 |
commit | f7aacf4ab7654a57408d5c0f871fd3b39930c6d7 (patch) | |
tree | ba63a983d4572d6837c655f1abb189b0efc10d7f /libavformat/movenc.c | |
parent | 8885a29e5dc832622c6a4c07f51e93a082811b09 (diff) | |
download | ffmpeg-f7aacf4ab7654a57408d5c0f871fd3b39930c6d7.tar.gz |
avformat/mov: add VP8 codec support
Demuxing only. Muxing is disabled as altref frame handling is not
defined in the spec, and there's no way to know the presence of
such frames during stream initialization.
Based on a patch by Steven Liu.
Fixes ticket #7000
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index f7079f3df7..f43349932b 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -6079,6 +6079,11 @@ static int mov_init(AVFormatContext *s) av_log(s, AV_LOG_ERROR, "VP9 only supported in MP4.\n"); return AVERROR(EINVAL); } + } else if (track->par->codec_id == AV_CODEC_ID_VP8) { + /* altref frames handling is not defined in the spec as of version v1.0, + * so just forbid muxing VP8 streams altogether until a new version does */ + av_log(s, AV_LOG_ERROR, "VP8 muxing is currently not supported.\n"); + return AVERROR_PATCHWELCOME; } } else if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) { track->timescale = st->codecpar->sample_rate; |