diff options
author | James Almer <jamrial@gmail.com> | 2017-04-10 01:32:18 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-04-12 20:53:55 -0300 |
commit | 1830b0a6c7dc00874caa5a121296840241a678eb (patch) | |
tree | efe80c88ca7c342f4bfe95a5a072a9f6222411e1 /libavformat/movenc.c | |
parent | 0ed4f26cf20ab865826c23d63dc1510e71bdc7f4 (diff) | |
download | ffmpeg-1830b0a6c7dc00874caa5a121296840241a678eb.tar.gz |
avformat/movenc: auto insert vp9_superframe bsf when needed
Experimental VP9 support was added to the muxer recently.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit d36a3f5a78bb1e15bbaffc7b92dbeb6a50c28ca9)
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index a54aa879e9..9280dc8d23 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -6352,6 +6352,8 @@ static int mov_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt) if (st->codecpar->codec_id == AV_CODEC_ID_AAC) { if (pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) ret = ff_stream_add_bitstream_filter(st, "aac_adtstoasc", NULL); + } else if (st->codecpar->codec_id == AV_CODEC_ID_VP9) { + ret = ff_stream_add_bitstream_filter(st, "vp9_superframe", NULL); } return ret; |