[FFmpeg-devel] [PATCH] Cosmetics: use a more compact notation, improve readability and reduce line count.
Stefano Sabatini
stefano.sabatini-lala
Sat Oct 16 18:17:28 CEST 2010
---
ffmpeg.c | 26 ++++++--------------------
1 files changed, 6 insertions(+), 20 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 010bce7..c8ec7e0 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3730,27 +3730,13 @@ static void opt_output_file(const char *filename)
}
/* 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;
--
1.7.1
More information about the ffmpeg-devel
mailing list