Browse Source

lavf/latmenc: Return the correct error for wrong codec.

Requested-by: Nicolas George
tags/n4.2
Carl Eugen Hoyos 6 years ago
parent
commit
6bc800dead
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/latmenc.c

+ 1
- 1
libavformat/latmenc.c View File

@@ -91,7 +91,7 @@ static int latm_write_header(AVFormatContext *s)
return 0;
if (par->codec_id != AV_CODEC_ID_AAC && par->codec_id != AV_CODEC_ID_MP4ALS) {
av_log(ctx, AV_LOG_ERROR, "Only AAC, LATM and ALS are supported\n");
return AVERROR_INVALIDDATA;
return AVERROR(EINVAL);
}

if (par->extradata_size > 0 &&


Loading…
Cancel
Save