[FFmpeg-cvslog] r25510 - trunk/ffmpeg.c

stefano subversion
Sat Oct 16 22:57:55 CEST 2010


Author: stefano
Date: Sat Oct 16 22:57:55 2010
New Revision: 25510

Log:
Cosmetics: use a more compact notation, improve readability and reduce
line count.

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Sat Oct 16 18:16:01 2010	(r25509)
+++ trunk/ffmpeg.c	Sat Oct 16 22:57:55 2010	(r25510)
@@ -3730,27 +3730,13 @@ static void opt_output_file(const char *
         }
 
         /* manual disable */
-        if (audio_disable) {
-            use_audio = 0;
-        }
-        if (video_disable) {
-            use_video = 0;
-        }
-        if (subtitle_disable) {
-            use_subtitle = 0;
-        }
-
-        if (use_video) {
-            new_video_stream(oc, nb_output_files);
-        }
-
-        if (use_audio) {
-            new_audio_stream(oc, nb_output_files);
-        }
+        if (audio_disable)    use_audio    = 0;
+        if (video_disable)    use_video    = 0;
+        if (subtitle_disable) use_subtitle = 0;
 
-        if (use_subtitle) {
-            new_subtitle_stream(oc, nb_output_files);
-        }
+        if (use_video)    new_video_stream(oc, nb_output_files);
+        if (use_audio)    new_audio_stream(oc, nb_output_files);
+        if (use_subtitle) new_subtitle_stream(oc, nb_output_files);
 
         oc->timestamp = recording_timestamp;
 



More information about the ffmpeg-cvslog mailing list