[FFmpeg-cvslog] avconv: rename 'os' variable to 'oc'

Anton Khirnov git at videolan.org
Tue Nov 22 03:10:59 CET 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Nov 20 12:23:55 2011 +0100| [1bb77e51a824187a8d8ecff7208be7296767256b] | committer: Anton Khirnov

avconv: rename 'os' variable to 'oc'

Output AVFormatContext is called 'oc' in most other places.

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

 avconv.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/avconv.c b/avconv.c
index ef41245..de737ec 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1961,7 +1961,7 @@ static int transcode_init(OutputFile *output_files,
                           int nb_input_files)
 {
     int ret = 0, i, j, k;
-    AVFormatContext *os;
+    AVFormatContext *oc;
     AVCodecContext *codec, *icodec;
     OutputStream *ost;
     InputStream *ist;
@@ -1978,9 +1978,9 @@ static int transcode_init(OutputFile *output_files,
 
     /* output stream init */
     for(i=0;i<nb_output_files;i++) {
-        os = output_files[i].ctx;
-        if (!os->nb_streams && !(os->oformat->flags & AVFMT_NOSTREAMS)) {
-            av_dump_format(os, i, os->filename, 1);
+        oc = output_files[i].ctx;
+        if (!oc->nb_streams && !(oc->oformat->flags & AVFMT_NOSTREAMS)) {
+            av_dump_format(oc, i, oc->filename, 1);
             av_log(NULL, AV_LOG_ERROR, "Output file #%d does not contain any stream\n", i);
             return AVERROR(EINVAL);
         }
@@ -1989,7 +1989,7 @@ static int transcode_init(OutputFile *output_files,
     /* for each output stream, we compute the right encoding parameters */
     for (i = 0; i < nb_output_streams; i++) {
         ost = &output_streams[i];
-        os = output_files[ost->file_index].ctx;
+        oc = output_files[ost->file_index].ctx;
         ist = &input_streams[ost->source_index];
 
         if (ost->attachment_filename)
@@ -2014,9 +2014,9 @@ static int transcode_init(OutputFile *output_files,
             codec->codec_type = icodec->codec_type;
 
             if(!codec->codec_tag){
-                if(   !os->oformat->codec_tag
-                   || av_codec_get_id (os->oformat->codec_tag, icodec->codec_tag) == codec->codec_id
-                   || av_codec_get_tag(os->oformat->codec_tag, icodec->codec_id) <= 0)
+                if(   !oc->oformat->codec_tag
+                   || av_codec_get_id (oc->oformat->codec_tag, icodec->codec_tag) == codec->codec_id
+                   || av_codec_get_tag(oc->oformat->codec_tag, icodec->codec_id) <= 0)
                     codec->codec_tag = icodec->codec_tag;
             }
 
@@ -2273,15 +2273,15 @@ static int transcode_init(OutputFile *output_files,
 
     /* open files and write file headers */
     for (i = 0; i < nb_output_files; i++) {
-        os = output_files[i].ctx;
-        os->interrupt_callback = int_cb;
-        if (avformat_write_header(os, &output_files[i].opts) < 0) {
+        oc = output_files[i].ctx;
+        oc->interrupt_callback = int_cb;
+        if (avformat_write_header(oc, &output_files[i].opts) < 0) {
             snprintf(error, sizeof(error), "Could not write header for output file #%d (incorrect codec parameters ?)", i);
             ret = AVERROR(EINVAL);
             goto dump_format;
         }
         assert_avoptions(output_files[i].opts);
-        if (strcmp(os->oformat->name, "rtp")) {
+        if (strcmp(oc->oformat->name, "rtp")) {
             want_sdp = 0;
         }
     }



More information about the ffmpeg-cvslog mailing list