[FFmpeg-devel,2/2] (was Re: deduplicated [PATCH] Cinepak: speed up decoding several-fold...) formats.

Submitted by u-9iep@aetey.se on March 5, 2017, 6:33 p.m.

Details

Message ID 20170305183304.GM32749@example.net
State New
Headers show

Commit Message

u-9iep@aetey.se March 5, 2017, 6:33 p.m.
Whitespace adjustments only.

Regards,
Rune
From 664e8878aac9dd9fa0393a1d60de81df8bf2f195 Mon Sep 17 00:00:00 2001
From: Rl <addr-see-the-website@aetey.se>
Date: Sun, 5 Mar 2017 16:32:58 +0100
Subject: [PATCH 2/2] libavcodec/cinepak.c: small whitespace cleanups

---
 libavcodec/cinepak.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c
index d8bc7860eb..8434eaf35c 100644
--- a/libavcodec/cinepak.c
+++ b/libavcodec/cinepak.c
@@ -146,12 +146,12 @@  static int cinepak_decode_vectors_##pixel_format (CinepakContext *s, cvid_strip
         for (x=strip->x1; x < strip->x2; x+=4) {\
             if (selective_update && !(mask >>= 1)) {\
                 if ((data + 4) > eod) return AVERROR_INVALIDDATA;\
-                flag  = AV_RB32 (data); data += 4; mask = 0x80000000;\
+                flag = AV_RB32 (data); data += 4; mask = 0x80000000;\
             }\
             if (!selective_update || (flag & mask)) {\
                 if (!v1_only && !(mask >>= 1)) {\
                     if ((data + 4) > eod) return AVERROR_INVALIDDATA;\
-                    flag  = AV_RB32 (data); data += 4; mask = 0x80000000;\
+                    flag = AV_RB32 (data); data += 4; mask = 0x80000000;\
                 }\
                 if (v1_only || (~flag & mask)) {\
                     POINTER_TYPE *p;\
@@ -310,7 +310,7 @@  static int cinepak_decode_strip (CinepakContext *s,
                                  cvid_strip *strip, const uint8_t *data, int size)
 {
     const uint8_t *eod = (data + size);
-    int      chunk_id, chunk_size;
+    int chunk_id, chunk_size;
 
     /* coordinate sanity checks */
     if (strip->x2 > s->width   ||
@@ -426,7 +426,7 @@  static int cinepak_decode (CinepakContext *s)
             return result;
 
         s->data += strip_size;
-        y0    = s->strips[i].y2;
+        y0 = s->strips[i].y2;
     }
     return 0;
 }