summaryrefslogtreecommitdiffstats
path: root/libavformat/matroskaenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-04-20 01:41:03 +0200
committerJames Almer <jamrial@gmail.com>2019-05-08 13:02:29 -0300
commit4b2c24da462f90f49b7f072e8bc1bf47d55d1c8b (patch)
tree93a4f0ffeba48c76319d31d9fa9cad26dc34d62a /libavformat/matroskaenc.c
parent924424d86781a5cfa4b59910f5f305e5ac348b4e (diff)
downloadffmpeg-streaming-4b2c24da462f90f49b7f072e8bc1bf47d55d1c8b.zip
ffmpeg-streaming-4b2c24da462f90f49b7f072e8bc1bf47d55d1c8b.tar.gz
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>
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r--libavformat/matroskaenc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index b300b23..316a632 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -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)
OpenPOWER on IntegriCloud