> On Oct 13, 2024, at 01:18, Marth64 <mart...@proxyid.net> wrote:
> 
> Written in the dominant style of the surrounding code block.
> 
> Signed-off-by: Marth64 <mart...@proxyid.net>
> ---
> libavformat/smoothstreamingenc.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/smoothstreamingenc.c 
> b/libavformat/smoothstreamingenc.c
> index 9547419d31..adf3008003 100644
> --- a/libavformat/smoothstreamingenc.c
> +++ b/libavformat/smoothstreamingenc.c
> @@ -331,7 +331,9 @@ static int ism_write_header(AVFormatContext *s)
>         if (!(st = avformat_new_stream(ctx, NULL))) {
>             return AVERROR(ENOMEM);
>         }
> -        avcodec_parameters_copy(st->codecpar, s->streams[i]->codecpar);
> +        if ((ret = avcodec_parameters_copy(st->codecpar, 
> s->streams[i]->codecpar)) < 0) {
> +            return ret;
> +        }

We don’t use braces in such case generally. And please split assignment and 
check into two lines
next time.

>         st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
>         st->time_base = s->streams[i]->time_base;
> 
> -- 
> 2.34.1
> 
> _______________________________________________
> 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".

_______________________________________________
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".

Reply via email to