diff mbox series

[FFmpeg-devel,5/5] avcodec/libdav1d: reindent after the previous commit

Message ID 20221208140706.3086-5-jamrial@gmail.com
State Accepted
Commit 048f369f1b9f591d3728b5f9f982f860d7c76982
Headers show
Series [FFmpeg-devel,1/5] avcodec/decode: add a function to set frame props from a user provided packet | 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

James Almer Dec. 8, 2022, 2:07 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/libdav1d.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index d9542dd6a0..2f151d2d1b 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -328,7 +328,7 @@  static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
 
             if (c->reordered_opaque != AV_NOPTS_VALUE) {
                 pkt->opaque = av_memdup(&c->reordered_opaque,
-                                                      sizeof(c->reordered_opaque));
+                                        sizeof(c->reordered_opaque));
                 if (!pkt->opaque) {
                     av_packet_free(&pkt);
                     dav1d_data_unref(data);
@@ -336,19 +336,19 @@  static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
                 }
             }
 
-                res = dav1d_data_wrap_user_data(data, (const uint8_t *)pkt,
-                                                libdav1d_user_data_free, pkt);
-                if (res < 0) {
-                    av_free(pkt->opaque);
-                    av_packet_free(&pkt);
-                    dav1d_data_unref(data);
-                    return res;
-                }
+            res = dav1d_data_wrap_user_data(data, (const uint8_t *)pkt,
+                                            libdav1d_user_data_free, pkt);
+            if (res < 0) {
+                av_free(pkt->opaque);
+                av_packet_free(&pkt);
+                dav1d_data_unref(data);
+                return res;
+            }
             pkt = NULL;
         } else {
             av_packet_free(&pkt);
             if (res >= 0)
-            return AVERROR(EAGAIN);
+                return AVERROR(EAGAIN);
         }
     }