diff options
author | Gabriel Dume <gabriel.ddx84@gmail.com> | 2014-08-29 22:43:43 -0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-09-01 05:37:00 -0700 |
commit | 63f800ca5f4f6b38f3789a7edb03bfabe8bacdd2 (patch) | |
tree | 8ea645f95dcbbb86d2fd524d70ab904f0c9a18c7 | |
parent | b8962d64cc71af241601bcab5c3fcdc5735ef4ae (diff) | |
download | ffmpeg-63f800ca5f4f6b38f3789a7edb03bfabe8bacdd2.tar.gz |
aac_adtstoasc_bsf: Return proper error code
Signed-off-by: Diego Biurrun <diego@biurrun.de>
-rw-r--r-- | libavcodec/aac_adtstoasc_bsf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c index bec6e7f234..733b08d567 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) { |