diff mbox series

[FFmpeg-devel,3/5] avformat/matroskaenc: reindent after the previous commit

Message ID 1588173257-14531-3-git-send-email-lance.lmwang@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/5] avformat/dashenc: fix invalid pointer access if avio_get_dyn_buf failed
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Limin Wang April 29, 2020, 3:14 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavformat/matroskaenc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index f0474da44f..41446c3825 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -375,12 +375,12 @@  static void end_ebml_master_crc32(AVIOContext *pb, AVIOContext **dyn_cp,
     if (mkv->write_crc) {
         skip = 6; /* Skip reserved 6-byte long void element from the dynamic buffer. */
         if (size > skip) {
-        AV_WL32(crc, av_crc(av_crc_get_table(AV_CRC_32_IEEE_LE), UINT32_MAX, buf + skip, size - skip) ^ UINT32_MAX);
-        put_ebml_binary(pb, EBML_ID_CRC32, crc, sizeof(crc));
+            AV_WL32(crc, av_crc(av_crc_get_table(AV_CRC_32_IEEE_LE), UINT32_MAX, buf + skip, size - skip) ^ UINT32_MAX);
+            put_ebml_binary(pb, EBML_ID_CRC32, crc, sizeof(crc));
         }
     }
     if (size > skip)
-    avio_write(pb, buf + skip, size - skip);
+        avio_write(pb, buf + skip, size - skip);
 
     if (keep_buffer) {
         ffio_reset_dyn_buf(*dyn_cp);