diff options
author | wm4 <wm4@nowhere> | 2015-04-24 22:34:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-24 23:27:12 +0200 |
commit | e11abdbad2fff17968c914212d5fd68d7536ddeb (patch) | |
tree | ff392adc6a8a8256de60f36b6780039e5f4d74ed /options | |
parent | 8d31ad85ec0ec49cc7f7f72c330f3570e57ceffe (diff) | |
download | mpv-e11abdbad2fff17968c914212d5fd68d7536ddeb.tar.bz2 mpv-e11abdbad2fff17968c914212d5fd68d7536ddeb.tar.xz |
player: flush decoder even if cover art is decoded
Fixes PNG cover art not showing up immediately (for example when running
with --pause).
libavformat exports embedded cover art as a single packet. For example,
a PNG attachment simply contains the PNG image, which can be sent to the
decoder. Normally you would expect that the PNG decoder would return 1
frame for 1 packet, without any delays. But this stopped working, and it
incurs a 1 frame delay.
This is perfectly legal (even if unexpected), so let our code feed the
decoder packets until we get something back. (In theory feeding the
packet instead of a real flush packet is still somewhat questionable.)
Diffstat (limited to 'options')
0 files changed, 0 insertions, 0 deletions