aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vble.c
diff options
context:
space:
mode:
authorRafaël Carré <funman@videolan.org>2013-08-27 17:35:49 +0200
committerReinhard Tartler <siretart@tauware.de>2014-05-03 12:06:08 -0400
commit05de372350f8720461d3cadba40836546f1bb95c (patch)
tree08d33cf01492d2af0b9629c3418074fb3442c425 /libavcodec/vble.c
parentb5f92f9603c2b46c37b20134e9e2338805844f0f (diff)
downloadffmpeg-05de372350f8720461d3cadba40836546f1bb95c.tar.gz
apedec: do not buffer decoded samples over AVPackets
Only consume an AVPacket when all the samples have been read. When the rate of samples output is limited (by the default value of max_samples), consuming the first packet immediately will cause timing problems: - The first packet with PTS 0 will output 4608 samples and be consumed entirely - The second packet with PTS 64 will output the remaining samples (typically, a lot, that's why max_samples exist) until the decoded samples of the first packet have been exhausted, at which point the samples of the second packet will be decoded and output when av_decode_frame is called with the next packet). That means there's a PTS jump since the first packet is 'decoded' immediately, which can be seen with avplay or mplayer: the timing jumps immediately to 6.2s (which is the size of a packet). Sample: http://streams.videolan.org/issues/6348/Goldwave-MAClib.ape Bug-Debian: http://bugs.debian.org/744901 Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> (cherry picked from commit 91d4cfb8127f1de6c4ad173a30fffe584700046d) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec/vble.c')
0 files changed, 0 insertions, 0 deletions