[FFmpeg-devel] [PATCH] avformat/iff: remove surplus if statement

Leo Izen leo.izen at gmail.com
Sun Dec 22 12:51:45 EET 2024


On 12/22/24 3:08 AM, Peter Ross wrote:
> Fixes CID 1636854
> ---
>   libavformat/iff.c | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/libavformat/iff.c b/libavformat/iff.c
> index ab0488dd31..de58b93421 100644
> --- a/libavformat/iff.c
> +++ b/libavformat/iff.c
> @@ -1007,8 +1007,6 @@ static int iff_read_packet(AVFormatContext *s,
>           av_assert0(0);
>       }
>   
> -    if (ret < 0)
> -        return ret;
>       return ret;
>   }
>   

Seems fine to me. Will apply.

- Leo Izen (Traneptora)



More information about the ffmpeg-devel mailing list