Browse Source

aac_adtstoasc_bsf: Return proper error code

Signed-off-by: Diego Biurrun <diego@biurrun.de>
tags/n2.4
Gabriel Dume Diego Biurrun 11 years ago
parent
commit
63f800ca5f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/aac_adtstoasc_bsf.c

+ 1
- 1
libavcodec/aac_adtstoasc_bsf.c View File

@@ -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) {


Loading…
Cancel
Save