[FFmpeg-devel] [mpegaudio_parser] Skip trailing junk data when flushing parser.
dalecurtis at chromium.org
Fri Feb 23 02:46:13 EET 2018
The parser should only return valid mpeg audio packets; it generally
does so, but in the case of flush, it returns whatever happens to
be in the buffer instead of ensuring its first a valid mpeg packet.
The fix is to check whether a valid frame size has been parsed and
if not discard the packet when flushing.
This should fix all sorts of mp3 files with trailing garbage.
Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1897 bytes
Desc: not available
More information about the ffmpeg-devel