From: Andriy Gelman <andriy.gel...@gmail.com>

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

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))
-- 
2.28.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to