[FFmpeg-cvslog] Peak Envelope Chunk encoder: Indent

Georg Lippitsch git at videolan.org
Tue Jun 24 04:51:59 CEST 2014


ffmpeg | branch: master | Georg Lippitsch <georg.lippitsch at gmx.at> | Sat Jun 21 19:20:40 2014 +0200| [fd504f7c6fb877301ec3b81e4b4a36c4047de0f4] | committer: Michael Niedermayer

Peak Envelope Chunk encoder: Indent

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd504f7c6fb877301ec3b81e4b4a36c4047de0f4
---

 libavformat/wavenc.c |   28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c
index 450018f..ef79a36 100644
--- a/libavformat/wavenc.c
+++ b/libavformat/wavenc.c
@@ -328,15 +328,15 @@ static int wav_write_header(AVFormatContext *s)
     }
 
     if (wav->write_peak != 2) {
-    /* format header */
-    fmt = ff_start_tag(pb, "fmt ");
-    if (ff_put_wav_header(pb, s->streams[0]->codec, 0) < 0) {
-        const AVCodecDescriptor *desc = avcodec_descriptor_get(s->streams[0]->codec->codec_id);
-        av_log(s, AV_LOG_ERROR, "%s codec not supported in WAVE format\n",
-               desc ? desc->name : "unknown");
-        return AVERROR(ENOSYS);
-    }
-    ff_end_tag(pb, fmt);
+        /* format header */
+        fmt = ff_start_tag(pb, "fmt ");
+        if (ff_put_wav_header(pb, s->streams[0]->codec, 0) < 0) {
+            const AVCodecDescriptor *desc = avcodec_descriptor_get(s->streams[0]->codec->codec_id);
+            av_log(s, AV_LOG_ERROR, "%s codec not supported in WAVE format\n",
+                   desc ? desc->name : "unknown");
+            return AVERROR(ENOSYS);
+        }
+        ff_end_tag(pb, fmt);
     }
 
     if (s->streams[0]->codec->codec_tag != 0x01 /* hence for all other than PCM */
@@ -360,11 +360,11 @@ static int wav_write_header(AVFormatContext *s)
     wav->minpts = INT64_MAX;
 
     if (wav->write_peak != 2) {
-    /* info header */
-    ff_riff_write_info(s);
+        /* info header */
+        ff_riff_write_info(s);
 
-    /* data header */
-    wav->data = ff_start_tag(pb, "data");
+        /* data header */
+        wav->data = ff_start_tag(pb, "data");
     }
 
     avio_flush(pb);
@@ -378,7 +378,7 @@ static int wav_write_packet(AVFormatContext *s, AVPacket *pkt)
     WAVMuxContext    *wav = s->priv_data;
 
     if (wav->write_peak != 2)
-    avio_write(pb, pkt->data, pkt->size);
+        avio_write(pb, pkt->data, pkt->size);
 
     if (wav->write_peak) {
         int c = 0;



More information about the ffmpeg-cvslog mailing list