[FFmpeg-cvslog] lavf/spdifdec: fix demuxing of AAC in IEC 61937
Anssi Hannula
git at videolan.org
Sun Nov 17 20:06:22 CET 2013
ffmpeg | branch: release/2.1 | Anssi Hannula <anssi.hannula at iki.fi> | Tue Oct 29 22:25:27 2013 +0200| [b56e9beeb83898a8531d2e3f2105a9b65c94cf21] | committer: Michael Niedermayer
lavf/spdifdec: fix demuxing of AAC in IEC 61937
Return value of avpriv_aac_parse_header() is not checked correctly. Fix
it.
Signed-off-by: Anssi Hannula <anssi.hannula at iki.fi>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit f86387b6c2b11650cb9d5a8fd886be76e48c665b)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b56e9beeb83898a8531d2e3f2105a9b65c94cf21
---
libavformat/spdifdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/spdifdec.c b/libavformat/spdifdec.c
index 6984350..7da16c9 100644
--- a/libavformat/spdifdec.c
+++ b/libavformat/spdifdec.c
@@ -57,7 +57,7 @@ static int spdif_get_offset_and_codec(AVFormatContext *s,
break;
case IEC61937_MPEG2_AAC:
init_get_bits(&gbc, buf, AAC_ADTS_HEADER_SIZE * 8);
- if (avpriv_aac_parse_header(&gbc, &aac_hdr)) {
+ if (avpriv_aac_parse_header(&gbc, &aac_hdr) < 0) {
if (s) /* be silent during a probe */
av_log(s, AV_LOG_ERROR, "Invalid AAC packet in IEC 61937\n");
return AVERROR_INVALIDDATA;
More information about the ffmpeg-cvslog
mailing list