aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-31 13:21:31 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-30 05:36:21 +0200
commit6cf69f0e72d6429ed54db0a21f165da7b06ca7e4 (patch)
treeb4b4dc2bec10a18598d43855c50917ea4aa9740d
parentb1c3d711df0d50bc367cc7000f346ae700667a31 (diff)
downloadffmpeg-6cf69f0e72d6429ed54db0a21f165da7b06ca7e4.tar.gz
avformat/matroskaenc: Cosmetics
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavformat/matroskaenc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 582ea52f23..f76f3524d8 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -450,7 +450,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;
@@ -463,8 +462,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);
@@ -476,7 +475,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);
if ((ret64 = avio_seek(pb, destpos, SEEK_SET)) < 0)
return ret64;