vd_ffmpeg: fix flushing of buffered frames
commitda52c9400defebc3f5840acc1f9eb0ead1a759cb
authorUoti Urpala <uau@mplayer2.org>
Fri, 3 Feb 2012 18:09:48 +0000 (3 20:09 +0200)
committerUoti Urpala <uau@mplayer2.org>
Fri, 3 Feb 2012 18:15:16 +0000 (3 20:15 +0200)
treea17088c843b032d917065ce72852dca75a390aa7
parentb317b928196e984d53440da0cda8e3d3d9f9430c
vd_ffmpeg: fix flushing of buffered frames

The vd_ffmpeg decode() function returned without doing anything if the
input packet had size 0. This meant that flushing buffered frames at
EOF did not work. Remove this test. Have the core code skip such
packets coming from the file being played instead (Libav treats
0-sized packets as flush signals anyway, so better assume such packets
do not represent real frames with any codec).
libmpcodecs/vd_ffmpeg.c
mplayer.c