diff mbox series

[FFmpeg-devel,3/8] lavc/libvpxenc: reindent

Message ID 20230228120104.2347-3-anton@khirnov.net
State Accepted
Commit 31fc61fb0c79be578bcb9b919e675e2540ceb652
Headers show
Series [FFmpeg-devel,1/8] lavu/frame: improve AVFrame.opaque[_ref] documentation | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Feb. 28, 2023, noon UTC
---
 libavcodec/libvpxenc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

James Zern Feb. 28, 2023, 8:50 p.m. UTC | #1
On Tue, Feb 28, 2023 at 4:01 AM Anton Khirnov <anton@khirnov.net> wrote:
>
> ---
>  libavcodec/libvpxenc.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>

lgtm.

> diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
> index eaa4ad8f25..abaa8c3513 100644
> --- a/libavcodec/libvpxenc.c
> +++ b/libavcodec/libvpxenc.c
> @@ -1284,11 +1284,11 @@ static int storeframe(AVCodecContext *avctx, struct FrameListData *cx_frame,
>          AV_WB64(side_data, 1);
>          memcpy(side_data + 8, alpha_cx_frame->buf, alpha_cx_frame->sz);
>      }
> -        if (ctx->hdr10_plus_fifo) {
> -            int err = copy_hdr10_plus_to_pkt(ctx->hdr10_plus_fifo, pkt);
> -            if (err < 0)
> -                return err;
> -        }
> +    if (ctx->hdr10_plus_fifo) {
> +        int err = copy_hdr10_plus_to_pkt(ctx->hdr10_plus_fifo, pkt);
> +        if (err < 0)
> +            return err;
> +    }
>
>      return pkt->size;
>  }
> --
> 2.39.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-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index eaa4ad8f25..abaa8c3513 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -1284,11 +1284,11 @@  static int storeframe(AVCodecContext *avctx, struct FrameListData *cx_frame,
         AV_WB64(side_data, 1);
         memcpy(side_data + 8, alpha_cx_frame->buf, alpha_cx_frame->sz);
     }
-        if (ctx->hdr10_plus_fifo) {
-            int err = copy_hdr10_plus_to_pkt(ctx->hdr10_plus_fifo, pkt);
-            if (err < 0)
-                return err;
-        }
+    if (ctx->hdr10_plus_fifo) {
+        int err = copy_hdr10_plus_to_pkt(ctx->hdr10_plus_fifo, pkt);
+        if (err < 0)
+            return err;
+    }
 
     return pkt->size;
 }