Commit 6bc800de authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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

Requested-by: Nicolas George
parent 54655623
......@@ -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 &&
......
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