aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2017-03-28 12:38:41 +0200
committerMatthieu Bouron <matthieu.bouron@gmail.com>2017-03-28 12:41:46 +0200
commit7e3e0f87e6e911250855f03dd2fa8b4533a3e654 (patch)
tree0736d8c4134a9a6158772a6bf3a9d0a75f58d8fb
parentc3706bc255741faab426093c64fe16c2c879b3a2 (diff)
downloadffmpeg-7e3e0f87e6e911250855f03dd2fa8b4533a3e654.tar.gz
doc/examples/muxing: re-indent block
-rw-r--r--doc/examples/muxing.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 1df5912ca7..e1a4770eb1 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -335,15 +335,15 @@ static int write_audio_frame(AVFormatContext *oc, OutputStream *ost)
if (ret < 0)
exit(1);
- /* convert to destination format */
- ret = swr_convert(ost->swr_ctx,
- ost->frame->data, dst_nb_samples,
- (const uint8_t **)frame->data, frame->nb_samples);
- if (ret < 0) {
- fprintf(stderr, "Error while converting\n");
- exit(1);
- }
- frame = ost->frame;
+ /* convert to destination format */
+ ret = swr_convert(ost->swr_ctx,
+ ost->frame->data, dst_nb_samples,
+ (const uint8_t **)frame->data, frame->nb_samples);
+ if (ret < 0) {
+ fprintf(stderr, "Error while converting\n");
+ exit(1);
+ }
+ frame = ost->frame;
frame->pts = av_rescale_q(ost->samples_count, (AVRational){1, c->sample_rate}, c->time_base);
ost->samples_count += dst_nb_samples;