diff options
author | wm4 <nfxjfg@googlemail.com> | 2015-09-30 14:53:35 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-10-10 00:43:26 +0200 |
commit | c83569e5f15199ef251dbd6b6d3cb4bdc5da7f8d (patch) | |
tree | daa103e6b4b4e504624b82dd35aecd944250f865 /libavcodec/flac.h | |
parent | 52fa2a2f60440f1c552979afccc62b6b1f5b7d85 (diff) | |
download | ffmpeg-c83569e5f15199ef251dbd6b6d3cb4bdc5da7f8d.tar.gz |
avcodec/mp3: fix skipping zeros
Commits 43bc5cf9 and c5371f77 add code for skipping initial zeros in mp3
packets. This code forgot to report to the user that data was skipped at
all.
Since audio codecs allow partial packet decoding, the user application
has to rely on the return value. It will remove the data reported as
consumed by the decoder, and feed it to the decoder again. This resulted
in the mp3 frame after the zero region to be decoded over and over
again, until the zero region was finally skipped by the application.
Fix this by including the amount of skipped bytes to the number of
consumed bytes returned by the decode call.
Fixes trac ticket #4890.
(cherry picked from commit cb1da9fb8d71bb611a7b0028914c97afc3f5711d)
Diffstat (limited to 'libavcodec/flac.h')
0 files changed, 0 insertions, 0 deletions