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>
Wed, 13 Jun 2018 14:46:40 +0000 (16:46 +0200)
commit2223811b015926fec68473a08016d40cea0989b2
tree35407bffe87d81e9790ef8a9c5756b052f23982b
parent12205d2c896b7edbc929d4886e7bfda4b53538e5
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>
libavformat/movenc.c