On Fri, Feb 18, 2022 at 7:53 AM Andreas Schneider <a...@cryptomilk.org> wrote: > > Signed-off-by: Andreas Schneider <a...@cryptomilk.org> > --- > libavcodec/libopenh264dec.c | 2 +- > libavcodec/libopenh264enc.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/libopenh264dec.c b/libavcodec/libopenh264dec.c > index 7f5e85402a..97d3630df6 100644 > --- a/libavcodec/libopenh264dec.c > +++ b/libavcodec/libopenh264dec.c > @@ -56,7 +56,7 @@ static av_cold int svc_decode_init(AVCodecContext *avctx) > WelsTraceCallback callback_function; > > if ((err = ff_libopenh264_check_version(avctx)) < 0) > - return err; > + return AVERROR_DECODER_NOT_FOUND; > > if (WelsCreateDecoder(&s->decoder)) { > av_log(avctx, AV_LOG_ERROR, "Unable to create decoder\n"); > diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c > index 7c0501a2eb..7649e7b025 100644 > --- a/libavcodec/libopenh264enc.c > +++ b/libavcodec/libopenh264enc.c > @@ -137,7 +137,7 @@ static av_cold int svc_encode_init(AVCodecContext *avctx) > AVCPBProperties *props; > > if ((err = ff_libopenh264_check_version(avctx)) < 0) > - return err; > + return AVERROR_ENCODER_NOT_FOUND; > > if (WelsCreateSVCEncoder(&s->encoder)) { > av_log(avctx, AV_LOG_ERROR, "Unable to create encoder\n"); > -- > 2.35.1 >
Works well for me and looks good. Reviewed-by: Neal Gompa <ngomp...@gmail.com> -- 真実はいつも一つ!/ Always, there's only one truth! _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".