diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 8cc88199e9cd433dcf99950046ea707f0f7cb69d..b65c1b19a767aed82831112818f6b548fbc67e05 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -366,7 +366,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
         enc->extradata_size > 0 && *(uint8_t*)enc->extradata != 1) {
         ff_avc_parse_nal_units(pb, pkt->data, pkt->size);
     } else {
-    put_buffer(pb, pkt->data, size);
+        put_buffer(pb, pkt->data, size);
     }
     put_be32(pb,size+flags_size+11); // previous tag size
     flv->duration = FFMAX(flv->duration, pkt->pts + flv->delay + pkt->duration);
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 83881ed1beac5da05586cc6ad78300badd7f03d2..a6435d19fe138030d2952ae82fc88d602b567d50 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -801,7 +801,7 @@ static void mkv_write_block(AVFormatContext *s, unsigned int blockid, AVPacket *
         /* nal reformating needed */
         ff_avc_parse_nal_units(pb, pkt->data, pkt->size);
     } else {
-    put_buffer(pb, pkt->data, pkt->size);
+        put_buffer(pb, pkt->data, pkt->size);
     }
 }
 
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index b357e8c85c8441a912b9aa9b2efe350775f0d375..b0945bb18de550da5294be564919f1a703403c93 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1774,7 +1774,7 @@ static int mov_write_packet(AVFormatContext *s, AVPacket *pkt)
         /* nal reformating needed */
         ff_avc_parse_nal_units(pb, pkt->data, pkt->size);
     } else {
-    put_buffer(pb, pkt->data, size);
+        put_buffer(pb, pkt->data, size);
     }
 
     put_flush_packet(pb);