[FFmpeg-cvslog] atrac3: fix error handling
Luca Barbato
git at videolan.org
Sat Sep 14 11:30:50 CEST 2013
ffmpeg | branch: release/0.10 | Luca Barbato <lu_zero at gentoo.org> | Tue Jul 9 01:03:13 2013 +0200| [09a098fb8bc7d70a0258b3e8d658833c8d11debe] | committer: Luca Barbato
atrac3: fix error handling
decode_tonal_components returns a proper AVERROR.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
(cherry picked from commit 874c8a17ac9b04fb7ac23d003e54e3662dd23b4e)
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
Conflicts:
libavcodec/atrac3.c
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09a098fb8bc7d70a0258b3e8d658833c8d11debe
---
libavcodec/atrac3.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 40a44c7..e0702a9 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -690,7 +690,8 @@ static int decodeChannelSoundUnit (ATRAC3Context *q, GetBitContext *gb, channel_
if (result) return result;
pSnd->numComponents = decodeTonalComponents (gb, pSnd->components, pSnd->bandsCoded);
- if (pSnd->numComponents == -1) return -1;
+ if (pSnd->numComponents < 0)
+ return pSnd->numComponents;
numSubbands = decodeSpectrum (gb, pSnd->spectrum);
More information about the ffmpeg-cvslog
mailing list