Browse code

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

Originally committed as revision 25510 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini authored on 2010/10/17 05:57:55
Showing 1 changed files
... ...
@@ -3730,27 +3730,13 @@ static void opt_output_file(const char *filename)
3730 3730
         }
3731 3731
 
3732 3732
         /* manual disable */
3733
-        if (audio_disable) {
3734
-            use_audio = 0;
3735
-        }
3736
-        if (video_disable) {
3737
-            use_video = 0;
3738
-        }
3739
-        if (subtitle_disable) {
3740
-            use_subtitle = 0;
3741
-        }
3742
-
3743
-        if (use_video) {
3744
-            new_video_stream(oc, nb_output_files);
3745
-        }
3746
-
3747
-        if (use_audio) {
3748
-            new_audio_stream(oc, nb_output_files);
3749
-        }
3733
+        if (audio_disable)    use_audio    = 0;
3734
+        if (video_disable)    use_video    = 0;
3735
+        if (subtitle_disable) use_subtitle = 0;
3750 3736
 
3751
-        if (use_subtitle) {
3752
-            new_subtitle_stream(oc, nb_output_files);
3753
-        }
3737
+        if (use_video)    new_video_stream(oc, nb_output_files);
3738
+        if (use_audio)    new_audio_stream(oc, nb_output_files);
3739
+        if (use_subtitle) new_subtitle_stream(oc, nb_output_files);
3754 3740
 
3755 3741
         oc->timestamp = recording_timestamp;
3756 3742