avformat/movenc: properly handle cover image codecs
authorTimo Teräs <timo.teras@iki.fi>
Thu, 31 May 2018 23:24:39 +0000 (02:24 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 13 Jun 2018 14:46:40 +0000 (16:46 +0200)
commit12205d2c896b7edbc929d4886e7bfda4b53538e5
tree6c29efdcf621a1c4ed0b1e23ef20326ed1b3a469
parent4aba45ca1fece6be425d168c05aa3a7f9f05da36
avformat/movenc: properly handle cover image codecs

Find codec tag for attached images using appropriate list of
supported image formats.

This fixes writing the cover image to m4v/m4a and other container
formats that do not allow these codecs as a track.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/movenc.c