diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-27 14:54:05 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-27 14:54:05 +0100 |
commit | 6bc800dead1e5717bd673bbf04ef23107bf7238f (patch) | |
tree | 7d0fcc467e6f70cc86370ab2e2b3a9a814c93695 /libavformat/latmenc.c | |
parent | 54655623a82632e7624714d7b2a3e039dc5faa7e (diff) | |
download | ffmpeg-6bc800dead1e5717bd673bbf04ef23107bf7238f.tar.gz |
lavf/latmenc: Return the correct error for wrong codec.
Requested-by: Nicolas George
Diffstat (limited to 'libavformat/latmenc.c')
-rw-r--r-- | libavformat/latmenc.c | 2 |
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 && |