[FFmpeg-devel] [PATCH 2/2] libavformat/segment: reindent

Simon Thelen ffmpeg-dev at c-14.de
Sat Oct 8 17:02:42 EEST 2016


Signed-off-by: Simon Thelen <ffmpeg-dev at c-14.de>
---
 libavformat/segment.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 82872fa..98e7bcc 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -69,8 +69,8 @@ typedef enum {
     LIST_TYPE_NB,
 } ListType;
 
-#define SEGMENT_LIST_FLAG_CACHE 1
-#define SEGMENT_LIST_FLAG_LIVE  2
+#define SEGMENT_LIST_FLAG_CACHE  1
+#define SEGMENT_LIST_FLAG_LIVE   2
 #define SEGMENT_LIST_FLAG_DELETE 4
 
 typedef struct SegmentContext {
@@ -460,8 +460,8 @@ static int segment_end(AVFormatContext *s, int write_trailer, int is_last)
                     if ((ret = delete_old_segments(seg)) < 0)
                         return ret;
                 } else {
-                av_freep(&entry->filename);
-                av_freep(&entry);
+                    av_freep(&entry->filename);
+                    av_freep(&entry);
                 }
             }
 
@@ -1060,9 +1060,9 @@ static const AVOption options[] = {
     { "segment_header_filename", "write a single file containing the header", OFFSET(header_filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, E },
 
     { "segment_list_flags","set flags affecting segment list generation", OFFSET(list_flags), AV_OPT_TYPE_FLAGS, {.i64 = SEGMENT_LIST_FLAG_CACHE }, 0, UINT_MAX, E, "list_flags"},
-    { "cache",             "allow list caching",                                    0, AV_OPT_TYPE_CONST, {.i64 = SEGMENT_LIST_FLAG_CACHE }, INT_MIN, INT_MAX,   E, "list_flags"},
-    { "live",              "enable live-friendly list generation (useful for HLS)", 0, AV_OPT_TYPE_CONST, {.i64 = SEGMENT_LIST_FLAG_LIVE }, INT_MIN, INT_MAX,    E, "list_flags"},
-    { "delete",            "delete segment files that are no longer part of the playlist", 0, AV_OPT_TYPE_CONST, {.i64 = SEGMENT_LIST_FLAG_DELETE }, INT_MIN, INT_MAX,    E, "list_flags"},
+    { "cache",             "allow list caching",                                           0, AV_OPT_TYPE_CONST, {.i64 = SEGMENT_LIST_FLAG_CACHE }, INT_MIN, INT_MAX,  E, "list_flags"},
+    { "live",              "enable live-friendly list generation (useful for HLS)",        0, AV_OPT_TYPE_CONST, {.i64 = SEGMENT_LIST_FLAG_LIVE }, INT_MIN, INT_MAX,   E, "list_flags"},
+    { "delete",            "delete segment files that are no longer part of the playlist", 0, AV_OPT_TYPE_CONST, {.i64 = SEGMENT_LIST_FLAG_DELETE }, INT_MIN, INT_MAX, E, "list_flags"},
 
     { "segment_list_size", "set the maximum number of playlist entries", OFFSET(list_size), AV_OPT_TYPE_INT,  {.i64 = 0},     0, INT_MAX, E },
 
-- 
2.10.0



More information about the ffmpeg-devel mailing list