[FFmpeg-devel] [PATCH] avcodec/libtheoraenc: Do not use invalid error code

Paul B Mahol onemda at gmail.com
Fri Sep 2 11:28:19 EEST 2022


On Thu, Sep 1, 2022 at 11:50 PM Andreas Rheinhardt <
andreas.rheinhardt at outlook.com> wrote:

> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/libtheoraenc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> So it currently does not compile or?



> diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c
> index 22835553d6..92bf3a133c 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
>  }
>
> --
> 2.34.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list