diff mbox series

[FFmpeg-devel,16/18] avformat/webpenc: Reindentation

Message ID 20210319055904.2264501-16-andreas.rheinhardt@gmail.com
State Accepted
Commit df9d969954133c02eabe308f67b819401092d30b
Headers show
Series [FFmpeg-devel,01/18] libavformat/utils: Fix indentation | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt March 19, 2021, 5:59 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavformat/webpenc.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/webpenc.c b/libavformat/webpenc.c
index e3b12aeed2..d5edf89289 100644
--- a/libavformat/webpenc.c
+++ b/libavformat/webpenc.c
@@ -53,22 +53,22 @@  static int webp_init(AVFormatContext *s)
 
 static int is_animated_webp_packet(AVPacket *pkt)
 {
-        int skip = 0;
-        unsigned flags = 0;
+    int skip = 0;
+    unsigned flags = 0;
 
-        if (pkt->size < 4)
+    if (pkt->size < 4)
         return AVERROR_INVALIDDATA;
-        if (AV_RL32(pkt->data) == AV_RL32("RIFF"))
-            skip = 12;
+    if (AV_RL32(pkt->data) == AV_RL32("RIFF"))
+        skip = 12;
     // Safe to do this as a valid WebP bitstream is >=30 bytes.
-        if (pkt->size < skip + 4)
+    if (pkt->size < skip + 4)
         return AVERROR_INVALIDDATA;
-        if (AV_RL32(pkt->data + skip) == AV_RL32("VP8X")) {
-            flags |= pkt->data[skip + 4 + 4];
-        }
+    if (AV_RL32(pkt->data + skip) == AV_RL32("VP8X")) {
+        flags |= pkt->data[skip + 4 + 4];
+    }
 
-        if (flags & 2)  // ANIMATION_FLAG is on
-            return 1;
+    if (flags & 2)  // ANIMATION_FLAG is on
+        return 1;
     return 0;
 }