ad_libav: flush decoder output after last input packet
commit11e9755a39a1833048ee71f7df12e2ea0c55288a
authorUoti Urpala <uau@mplayer2.org>
Wed, 9 Oct 2013 20:36:27 +0000 (9 23:36 +0300)
committerUoti Urpala <uau@mplayer2.org>
Wed, 9 Oct 2013 20:43:25 +0000 (9 23:43 +0300)
treec21abb8390baef82be797c73b5b448307cc71876
parent6c87a981baa4972fd71c25dfddea017b5a972e89
ad_libav: flush decoder output after last input packet

Some versions of libav APE audio decoder can consume a packet and
return data on subsequent calls. This could lead to audio being cut at
end of file as mplayer2 stopped decoding as soon as input as
exhausted. Keep calling libavcodec audio decoder until it returns no
more output.
libmpcodecs/ad_ffmpeg.c