[FFmpeg-devel] [PATCH 9/9] lavf/oggdec: reindent and comment blocks.

Clément Bœsch ubitux at gmail.com
Sat Sep 15 01:20:48 CEST 2012


---
 libavformat/oggdec.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 5b3b789..838a798 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -204,6 +204,7 @@ static int ogg_new_stream(AVFormatContext *s, uint32_t serial)
     AVStream *st;
     struct ogg_stream *os;
 
+    /* Allocate and init a new Ogg Stream */
     ogg->streams = av_realloc_f(ogg->streams, ogg->nstreams,
                                 sizeof(*ogg->streams));
     if (!ogg->streams)
@@ -217,12 +218,12 @@ static int ogg_new_stream(AVFormatContext *s, uint32_t serial)
     if (!os->buf)
         return AVERROR(ENOMEM);
 
-        st = avformat_new_stream(s, NULL);
-        if (!st)
-            return AVERROR(ENOMEM);
-
-        st->id = idx;
-        avpriv_set_pts_info(st, 64, 1, 1000000);
+    /* Create the associated AVStream */
+    st = avformat_new_stream(s, NULL);
+    if (!st)
+        return AVERROR(ENOMEM);
+    st->id = idx;
+    avpriv_set_pts_info(st, 64, 1, 1000000);
 
     return idx;
 }
-- 
1.7.12



More information about the ffmpeg-devel mailing list