lavf/segment: rename segment private context from "c" to "seg" in segment_start()
authorStefano Sabatini <stefasab@gmail.com>
Fri, 13 Jan 2012 22:27:09 +0000 (23:27 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Fri, 29 Jun 2012 15:04:19 +0000 (17:04 +0200)
Consistent with the rest of the file, less confusing.

libavformat/segment.c

index 19d8855..da23626 100644 (file)
@@ -47,15 +47,15 @@ typedef struct {
 
 static int segment_start(AVFormatContext *s)
 {
-    SegmentContext *c = s->priv_data;
-    AVFormatContext *oc = c->avf;
+    SegmentContext *seg = s->priv_data;
+    AVFormatContext *oc = seg->avf;
     int err = 0;
 
-    if (c->wrap)
-        c->number %= c->wrap;
+    if (seg->wrap)
+        seg->number %= seg->wrap;
 
     if (av_get_frame_filename(oc->filename, sizeof(oc->filename),
-                              s->filename, c->number++) < 0)
+                              s->filename, seg->number++) < 0)
         return AVERROR(EINVAL);
 
     if ((err = avio_open2(&oc->pb, oc->filename, AVIO_FLAG_WRITE,