[FFmpeg-cvslog] examples/muxing: remove redundant {}
Stefano Sabatini
git at videolan.org
Mon Jan 20 13:26:55 CET 2014
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Jan 19 18:38:53 2014 +0100| [9ab8f3738a4cf386538a76e97490237d7a5a249b] | committer: Stefano Sabatini
examples/muxing: remove redundant {}
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9ab8f3738a4cf386538a76e97490237d7a5a249b
---
doc/examples/muxing.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 77171d0..38b6601 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -518,9 +518,9 @@ int main(int argc, char **argv)
printf("Could not deduce output format from file extension: using MPEG.\n");
avformat_alloc_output_context2(&oc, NULL, "mpeg", filename);
}
- if (!oc) {
+ if (!oc)
return 1;
- }
+
fmt = oc->oformat;
/* Add the audio and video streams using the default format codecs
@@ -528,12 +528,10 @@ int main(int argc, char **argv)
video_st = NULL;
audio_st = NULL;
- if (fmt->video_codec != AV_CODEC_ID_NONE) {
+ if (fmt->video_codec != AV_CODEC_ID_NONE)
video_st = add_stream(oc, &video_codec, fmt->video_codec);
- }
- if (fmt->audio_codec != AV_CODEC_ID_NONE) {
+ if (fmt->audio_codec != AV_CODEC_ID_NONE)
audio_st = add_stream(oc, &audio_codec, fmt->audio_codec);
- }
/* Now that all the parameters are set, we can open the audio and
* video codecs and allocate the necessary encode buffers. */
More information about the ffmpeg-cvslog
mailing list