diff mbox series

[FFmpeg-devel,4/4] avformat/nutenc: cosmetics

Message ID 20201108195043.210799-4-andriy.gelman@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/4] avformat/nutenc: don't use header_count to store different variables
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andriy Gelman Nov. 8, 2020, 7:50 p.m. UTC
From: Andriy Gelman <andriy.gelman@gmail.com>

Realign from previous commit and fix typo in comment.
---
 libavformat/nutenc.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 5a775a92fe..0323984556 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -506,7 +506,7 @@  static int write_globalinfo(NUTContext *nut, AVIOContext *bc)
     while ((t = av_dict_get(s->metadata, "", t, AV_DICT_IGNORE_SUFFIX)))
         count += add_info(dyn_bc, t->key, t->value);
 
-    put_v(bc, 0); //stream_if_plus1
+    put_v(bc, 0); //stream_id_plus1
     put_v(bc, 0); //chapter_id
     put_v(bc, 0); //timestamp_start
     put_v(bc, 0); //length
@@ -996,11 +996,11 @@  static int nut_write_packet(AVFormatContext *s, AVPacket *pkt)
                 goto fail;
         }
     } else {
-    if (1LL << (20 + 3 * nut->header_rep_count) <= avio_tell(bc)) {
-        ret = write_headers(s, bc);
-        if (ret < 0)
-            goto fail;
-    }
+        if (1LL << (20 + 3 * nut->header_rep_count) <= avio_tell(bc)) {
+            ret = write_headers(s, bc);
+            if (ret < 0)
+                goto fail;
+        }
     }
 
     if (key_frame && !(nus->last_flags & FLAG_KEY))