diff mbox series

[FFmpeg-devel,11/20] avformat/matroskaenc: Cosmetics

Message ID 20200101005837.11356-12-andreas.rheinhardt@gmail.com
State Accepted
Headers show
Series Matroska muxer patches
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Andreas Rheinhardt Jan. 1, 2020, 12:58 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavformat/matroskaenc.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 8040c8311c..6dd731eb90 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -449,7 +449,6 @@  static int mkv_write_seekhead(AVIOContext *pb, MatroskaMuxContext *mkv,
 {
     AVIOContext *dyn_cp;
     mkv_seekhead *seekhead = &mkv->seekhead;
-    ebml_master seekentry;
     int64_t remaining, ret64;
     int i, ret;
 
@@ -465,8 +464,8 @@  static int mkv_write_seekhead(AVIOContext *pb, MatroskaMuxContext *mkv,
 
     for (i = 0; i < seekhead->num_entries; i++) {
         mkv_seekhead_entry *entry = &seekhead->entries[i];
-
-        seekentry = start_ebml_master(dyn_cp, MATROSKA_ID_SEEKENTRY, MAX_SEEKENTRY_SIZE);
+        ebml_master seekentry = start_ebml_master(dyn_cp, MATROSKA_ID_SEEKENTRY,
+                                                  MAX_SEEKENTRY_SIZE);
 
         put_ebml_id(dyn_cp, MATROSKA_ID_SEEKID);
         put_ebml_num(dyn_cp, ebml_id_size(entry->elementid), 0);
@@ -478,7 +477,7 @@  static int mkv_write_seekhead(AVIOContext *pb, MatroskaMuxContext *mkv,
     end_ebml_master_crc32(pb, &dyn_cp, mkv);
 
     remaining = seekhead->filepos + seekhead->reserved_size - avio_tell(pb);
-        put_ebml_void(pb, remaining);
+    put_ebml_void(pb, remaining);
 
 seek:
     if ((ret64 = avio_seek(pb, destpos, SEEK_SET)) < 0)