diff mbox series

[FFmpeg-devel,03/14] avformat/matroska: use more consistent spacing in enums

Message ID 20200322085933.7532-3-robUx4@ycbcr.xyz
State New
Headers show
Series [FFmpeg-devel,01/14] avformat/matroska: add missing Buttons track type | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Steve Lhomme March 22, 2020, 8:59 a.m. UTC
From: Steve Lhomme <robux4@ycbcr.xyz>

---
 libavformat/matroska.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Comments

Andreas Rheinhardt April 3, 2020, 5:09 p.m. UTC | #1
Steve Lhomme:
> From: Steve Lhomme <robux4@ycbcr.xyz>
> 
> ---
>  libavformat/matroska.h | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/libavformat/matroska.h b/libavformat/matroska.h
> index e177cd027f..5520e9ce8f 100644
> --- a/libavformat/matroska.h
> +++ b/libavformat/matroska.h
> @@ -284,18 +284,18 @@ typedef enum {
>  } MatroskaTrackEncodingCompAlgo;
>  
>  typedef enum {
> -    MATROSKA_VIDEO_INTERLACE_FLAG_UNDETERMINED = 0,
> -    MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED   = 1,
> -    MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE  = 2,
> +  MATROSKA_VIDEO_INTERLACE_FLAG_UNDETERMINED = 0,
> +  MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED   = 1,
> +  MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE  = 2,
>  } MatroskaVideoInterlaceFlag;
>  
>  typedef enum {
> -    MATROSKA_VIDEO_FIELDORDER_PROGRESSIVE  = 0,
> -    MATROSKA_VIDEO_FIELDORDER_TT           = 1,
> -    MATROSKA_VIDEO_FIELDORDER_UNDETERMINED = 2,
> -    MATROSKA_VIDEO_FIELDORDER_BB           = 6,
> -    MATROSKA_VIDEO_FIELDORDER_TB           = 9,
> -    MATROSKA_VIDEO_FIELDORDER_BT           = 14,
> +  MATROSKA_VIDEO_FIELDORDER_PROGRESSIVE  = 0,
> +  MATROSKA_VIDEO_FIELDORDER_TT           = 1,
> +  MATROSKA_VIDEO_FIELDORDER_UNDETERMINED = 2,
> +  MATROSKA_VIDEO_FIELDORDER_BB           = 6,
> +  MATROSKA_VIDEO_FIELDORDER_TB           = 9,
> +  MATROSKA_VIDEO_FIELDORDER_BT           = 14,
>  } MatroskaVideoFieldOrder;
>  
>  typedef enum {
> 
Actually FFmpeg uses an indent size of four. It seems that most enums
already abide by this and most of those that don't are in
libavformat/matroska.h.

- Andreas
diff mbox series

Patch

diff --git a/libavformat/matroska.h b/libavformat/matroska.h
index e177cd027f..5520e9ce8f 100644
--- a/libavformat/matroska.h
+++ b/libavformat/matroska.h
@@ -284,18 +284,18 @@  typedef enum {
 } MatroskaTrackEncodingCompAlgo;
 
 typedef enum {
-    MATROSKA_VIDEO_INTERLACE_FLAG_UNDETERMINED = 0,
-    MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED   = 1,
-    MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE  = 2,
+  MATROSKA_VIDEO_INTERLACE_FLAG_UNDETERMINED = 0,
+  MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED   = 1,
+  MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE  = 2,
 } MatroskaVideoInterlaceFlag;
 
 typedef enum {
-    MATROSKA_VIDEO_FIELDORDER_PROGRESSIVE  = 0,
-    MATROSKA_VIDEO_FIELDORDER_TT           = 1,
-    MATROSKA_VIDEO_FIELDORDER_UNDETERMINED = 2,
-    MATROSKA_VIDEO_FIELDORDER_BB           = 6,
-    MATROSKA_VIDEO_FIELDORDER_TB           = 9,
-    MATROSKA_VIDEO_FIELDORDER_BT           = 14,
+  MATROSKA_VIDEO_FIELDORDER_PROGRESSIVE  = 0,
+  MATROSKA_VIDEO_FIELDORDER_TT           = 1,
+  MATROSKA_VIDEO_FIELDORDER_UNDETERMINED = 2,
+  MATROSKA_VIDEO_FIELDORDER_BB           = 6,
+  MATROSKA_VIDEO_FIELDORDER_TB           = 9,
+  MATROSKA_VIDEO_FIELDORDER_BT           = 14,
 } MatroskaVideoFieldOrder;
 
 typedef enum {