aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-01 23:49:32 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-06 03:29:22 +0200
commit61c37bc61d6ff08d52c5f9e01b9ba45e957031ca (patch)
tree5119d83d91e7b4e39b4c4fae2a417826012f2f26
parent9b738de6112f475a557a2d911c8c33160ce85846 (diff)
downloadffmpeg-61c37bc61d6ff08d52c5f9e01b9ba45e957031ca.tar.gz
avcodec/libtheoraenc: Do not use invalid error code
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/libtheoraenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c
index b453e74c81..da16c6372e 100644
--- a/libavcodec/libtheoraenc.c
+++ b/libavcodec/libtheoraenc.c
@@ -119,7 +119,7 @@ static int get_stats(AVCodecContext *avctx, int eos)
return 0;
#else
av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");
- return AVERROR(ENOSUP);
+ return AVERROR(ENOTSUP);
#endif
}
@@ -158,7 +158,7 @@ static int submit_stats(AVCodecContext *avctx)
return 0;
#else
av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");
- return AVERROR(ENOSUP);
+ return AVERROR(ENOTSUP);
#endif
}