avformat/movenc: fix recognization of cover image streams
authorTimo Teräs <timo.teras@iki.fi>
Mon, 4 Jun 2018 14:36:19 +0000 (17:36 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Jun 2018 20:31:13 +0000 (22:31 +0200)
commitf0e4bc61e31d9d766920837422fdca95e82f771b
tree3d85b94224e9d4c708db6e5abc4b38026ef94ffb
parent36628bd215699afaeec732f54fc08287e3f76b56
avformat/movenc: fix recognization of cover image streams

For chapter images, the mov demux produces streams with disposition set
to attached_pic+timed_thumbnails. This patch fixes to properly recognize
streams that should be encoded as cover image (ones with only and only
attached_pic disposition set).

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2223811b015926fec68473a08016d40cea0989b2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/movenc.c