[FFmpeg-cvslog] lavf/segment: rename segment private context from "c" to "seg" in segment_start()

Stefano Sabatini git at videolan.org
Fri Jun 29 17:11:37 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Jan 13 23:27:09 2012 +0100| [c1abfbc47c9395692c0570bea9c778785941cfdd] | committer: Stefano Sabatini

lavf/segment: rename segment private context from "c" to "seg" in segment_start()

Consistent with the rest of the file, less confusing.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1abfbc47c9395692c0570bea9c778785941cfdd
---

 libavformat/segment.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 19d8855..da23626 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -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,



More information about the ffmpeg-cvslog mailing list