mp3: exit on parsing error in mp_decode_frame
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 22 Oct 2012 16:50:32 +0000 (18:50 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 20 Jan 2013 19:36:57 +0000 (20:36 +0100)
commit1076ea8115ada59d9c779d67209f0548cc03b604
tree4678a0a913423ad97bd15053bea8930055ee1a08
parenta94f789c334ce35d7243f76b6bc982ba38289ec8
mp3: exit on parsing error in mp_decode_frame

Properly forward mp_decode_layer3 errors, mp_decode_layer1 and
mp_decode_layer2 do not return errors.

Based on a patch by Michael Niedermayer.
(cherry picked from commit 0c03cc68386443f1e96ab6fb358220faf67cd5ff)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/mpegaudiodec.c