Browse Source

avformat/matroskaenc: Remove redundant check

All places where end_ebml_master_crc32_preliminary are used already
check for whether the output is seekable, so the check in the function
is redundant.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.2
Andreas Rheinhardt James Almer 6 years ago
parent
commit
4b2c24da46
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      libavformat/matroskaenc.c

+ 0
- 2
libavformat/matroskaenc.c View File

@@ -379,14 +379,12 @@ static void end_ebml_master_crc32(AVIOContext *pb, AVIOContext **dyn_cp, Matrosk
static void end_ebml_master_crc32_preliminary(AVIOContext *pb, AVIOContext **dyn_cp, MatroskaMuxContext *mkv,
ebml_master master)
{
if (pb->seekable & AVIO_SEEKABLE_NORMAL) {

uint8_t *buf;
int size = avio_get_dyn_buf(*dyn_cp, &buf);

avio_write(pb, buf, size);
end_ebml_master(pb, master);
}
}

static void put_xiph_size(AVIOContext *pb, int size)


Loading…
Cancel
Save