[FFmpeg-cvslog] aac_adtstoasc_bsf: Return proper error code
Gabriel Dume
git at videolan.org
Mon Sep 1 21:01:36 CEST 2014
ffmpeg | branch: master | Gabriel Dume <gabriel.ddx84 at gmail.com> | Fri Aug 29 22:43:43 2014 -0400| [63f800ca5f4f6b38f3789a7edb03bfabe8bacdd2] | committer: Diego Biurrun
aac_adtstoasc_bsf: Return proper error code
Signed-off-by: Diego Biurrun <diego at biurrun.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=63f800ca5f4f6b38f3789a7edb03bfabe8bacdd2
---
libavcodec/aac_adtstoasc_bsf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c
index bec6e7f..733b08d 100644
--- a/libavcodec/aac_adtstoasc_bsf.c
+++ b/libavcodec/aac_adtstoasc_bsf.c
@@ -57,7 +57,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
if (avpriv_aac_parse_header(&gb, &hdr) < 0) {
av_log(avctx, AV_LOG_ERROR, "Error parsing ADTS frame header!\n");
- return -1;
+ return AVERROR_INVALIDDATA;
}
if (!hdr.crc_absent && hdr.num_aac_frames > 1) {
More information about the ffmpeg-cvslog
mailing list