avformat/ivfenc: fix writing codec tag
authorJames Almer <jamrial@gmail.com>
Mon, 24 Sep 2018 00:54:24 +0000 (21:54 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 24 Sep 2018 19:15:30 +0000 (16:15 -0300)
commite50cb8b2f440aa590f06dde0b592b312fafc85eb
tree762a9c60368bb24365e66dc913baf96e0b7883bf
parent54ca198e236039b81f3da9bb098b9abd31223c65
avformat/ivfenc: fix writing codec tag

The value in AVCodecParameters->codec_tag may not be correct for IVF,
as it's the case when remuxing AV1 streams from mp4, so ignore it and
write the correct value based on codec ID instead.

Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/ivfenc.c