[FFmpeg-cvslog] lavf/latmenc: Return the correct error for wrong codec.
Carl Eugen Hoyos
git at videolan.org
Wed Mar 27 15:54:49 EET 2019
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Wed Mar 27 14:54:05 2019 +0100| [6bc800dead1e5717bd673bbf04ef23107bf7238f] | committer: Carl Eugen Hoyos
lavf/latmenc: Return the correct error for wrong codec.
Requested-by: Nicolas George
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6bc800dead1e5717bd673bbf04ef23107bf7238f
---
libavformat/latmenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 &&
More information about the ffmpeg-cvslog
mailing list