summaryrefslogtreecommitdiff
path: root/libavformat/latmenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/latmenc.c')
-rw-r--r--libavformat/latmenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c
index 3b2d7af430..8eb219f8ae 100644
--- a/libavformat/latmenc.c
+++ b/libavformat/latmenc.c
@@ -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 &&