Commit 63f800ca authored by Gabriel Dume's avatar Gabriel Dume Committed by Diego Biurrun

aac_adtstoasc_bsf: Return proper error code

Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent b8962d64
...@@ -57,7 +57,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc, ...@@ -57,7 +57,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
if (avpriv_aac_parse_header(&gb, &hdr) < 0) { if (avpriv_aac_parse_header(&gb, &hdr) < 0) {
av_log(avctx, AV_LOG_ERROR, "Error parsing ADTS frame header!\n"); 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) { if (!hdr.crc_absent && hdr.num_aac_frames > 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment