[FFmpeg-devel] [PATCH 2/5] avcodec/sunrast: Fix return type for "unsupported (compression) type"
Paul B Mahol
onemda at gmail.com
Sat Sep 21 20:00:41 EEST 2019
LGTM
On 9/21/19, Michael Niedermayer <michael at niedermayer.cc> wrote:
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
> libavcodec/sunrast.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
> index 0af5626e35..883421202a 100644
> --- a/libavcodec/sunrast.c
> +++ b/libavcodec/sunrast.c
> @@ -72,7 +72,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx,
> void *data,
>
> if (type == RT_FORMAT_TIFF || type == RT_FORMAT_IFF) {
> av_log(avctx, AV_LOG_ERROR, "unsupported (compression) type\n");
> - return -1;
> + return AVERROR_PATCHWELCOME;
> }
>
> switch (depth) {
> --
> 2.23.0
>
> _______________________________________________
> 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