[FFmpeg-devel] [PATCH] avcodec/rasc: Fix potential use of uninitialized value
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Oct 5 20:31:33 EEST 2021
Andreas Rheinhardt:
> Fixes Coverity issue #1439566.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavcodec/rasc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/rasc.c b/libavcodec/rasc.c
> index 7fedf73878..b328e219bb 100644
> --- a/libavcodec/rasc.c
> +++ b/libavcodec/rasc.c
> @@ -721,6 +721,7 @@ static int decode_frame(AVCodecContext *avctx,
> break;
> default:
> bytestream2_skip(gb, size);
> + ret = 0;
> }
>
> if (ret < 0)
>
Will apply later tonight unless there are objections.
- Andreas
More information about the ffmpeg-devel
mailing list