diff options
author | Victor Anjin <virinext@gmail.com> | 2015-04-15 23:51:59 +0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-16 13:06:35 +0200 |
commit | 2db24cf746dc871903ada25b184f5e5decd95a42 (patch) | |
tree | 252f691ce076a3ffbc18397bb95942dd78775d48 /libavformat/ivfenc.c | |
parent | 38155865df73627f7a7001acbc2243991e96463d (diff) | |
download | ffmpeg-2db24cf746dc871903ada25b184f5e5decd95a42.tar.gz |
ivfenc: incorrect fourcc for VP9 video
VP80 fourcc are writed for all contexts (without ctx->codec_tag)
how to reproduce the issue:
1) Get any vp9 video (for example http://base-n.de/webm/out9.webm)
2) ffmpeg -i out9.webm -vcodec copy out9.ivf
3) out9.ivf have VP80 fourcc at ivf header
The proposed fix solves this issue
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/ivfenc.c')
-rw-r--r-- | libavformat/ivfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ivfenc.c b/libavformat/ivfenc.c index 5700f01d3c..1d76c5c7cb 100644 --- a/libavformat/ivfenc.c +++ b/libavformat/ivfenc.c @@ -38,7 +38,7 @@ static int ivf_write_header(AVFormatContext *s) avio_write(pb, "DKIF", 4); avio_wl16(pb, 0); // version avio_wl16(pb, 32); // header length - avio_wl32(pb, ctx->codec_tag ? ctx->codec_tag : AV_RL32("VP80")); + avio_wl32(pb, ctx->codec_tag ? ctx->codec_tag : ctx->codec_id == AV_CODEC_ID_VP9 ? AV_RL32("VP90") : AV_RL32("VP80")); avio_wl16(pb, ctx->width); avio_wl16(pb, ctx->height); avio_wl32(pb, s->streams[0]->time_base.den); |