[SCM] libav/experimental: Cosmetics: use a more compact notation, improve readability and reduce line count.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:17:51 UTC 2013
The following commit has been merged in the experimental branch:
commit 3f2a7e42778c86dbf573c85fdbea0a3499a499b2
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Sat Oct 16 20:57:55 2010 +0000
Cosmetics: use a more compact notation, improve readability and reduce
line count.
Originally committed as revision 25510 to svn://svn.ffmpeg.org/ffmpeg/trunk
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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list