mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
lavf/latmenc: Return the correct error for wrong codec.
Requested-by: Nicolas George
This commit is contained in:
parent
54655623a8
commit
6bc800dead
@ -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…
Reference in New Issue
Block a user