Commit 907b7f88 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avformat/matroskaenc: Remove unused function parameter

end_ebml_master_crc32_preliminary() has a MatroskaMuxContext as
parameter that isn't used at all. So remove it.
Furthermore it doesn't close its dynamic buffer; it just uses the
underlying buffer and therefore it only needs a pointer to the
dynamic buffer, not a pointer to a pointer.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
parent d9c21ec6
...@@ -361,11 +361,11 @@ static void end_ebml_master_crc32(AVIOContext *pb, AVIOContext **dyn_cp, ...@@ -361,11 +361,11 @@ static void end_ebml_master_crc32(AVIOContext *pb, AVIOContext **dyn_cp,
/** /**
* Complete ebml master without destroying the buffer, allowing for later updates * Complete ebml master without destroying the buffer, allowing for later updates
*/ */
static void end_ebml_master_crc32_preliminary(AVIOContext *pb, AVIOContext **dyn_cp, MatroskaMuxContext *mkv, static void end_ebml_master_crc32_preliminary(AVIOContext *pb, AVIOContext *dyn_cp,
uint32_t id, int64_t *pos) uint32_t id, int64_t *pos)
{ {
uint8_t *buf; uint8_t *buf;
int size = avio_get_dyn_buf(*dyn_cp, &buf); int size = avio_get_dyn_buf(dyn_cp, &buf);
*pos = avio_tell(pb); *pos = avio_tell(pb);
...@@ -1388,7 +1388,7 @@ static int mkv_write_tracks(AVFormatContext *s) ...@@ -1388,7 +1388,7 @@ static int mkv_write_tracks(AVFormatContext *s)
} }
if ((pb->seekable & AVIO_SEEKABLE_NORMAL) && !mkv->is_live) if ((pb->seekable & AVIO_SEEKABLE_NORMAL) && !mkv->is_live)
end_ebml_master_crc32_preliminary(pb, &mkv->tracks_bc, mkv, end_ebml_master_crc32_preliminary(pb, mkv->tracks_bc,
MATROSKA_ID_TRACKS, &mkv->tracks_pos); MATROSKA_ID_TRACKS, &mkv->tracks_pos);
else else
end_ebml_master_crc32(pb, &mkv->tracks_bc, mkv, MATROSKA_ID_TRACKS); end_ebml_master_crc32(pb, &mkv->tracks_bc, mkv, MATROSKA_ID_TRACKS);
...@@ -1643,7 +1643,7 @@ static int mkv_write_tags(AVFormatContext *s) ...@@ -1643,7 +1643,7 @@ static int mkv_write_tags(AVFormatContext *s)
if (mkv->tags_bc) { if (mkv->tags_bc) {
if ((s->pb->seekable & AVIO_SEEKABLE_NORMAL) && !mkv->is_live) if ((s->pb->seekable & AVIO_SEEKABLE_NORMAL) && !mkv->is_live)
end_ebml_master_crc32_preliminary(s->pb, &mkv->tags_bc, mkv, end_ebml_master_crc32_preliminary(s->pb, mkv->tags_bc,
MATROSKA_ID_TAGS, &mkv->tags_pos); MATROSKA_ID_TAGS, &mkv->tags_pos);
else else
end_ebml_master_crc32(s->pb, &mkv->tags_bc, mkv, MATROSKA_ID_TAGS); end_ebml_master_crc32(s->pb, &mkv->tags_bc, mkv, MATROSKA_ID_TAGS);
...@@ -1880,7 +1880,7 @@ static int mkv_write_header(AVFormatContext *s) ...@@ -1880,7 +1880,7 @@ static int mkv_write_header(AVFormatContext *s)
} }
} }
if ((s->pb->seekable & AVIO_SEEKABLE_NORMAL) && !mkv->is_live) if ((s->pb->seekable & AVIO_SEEKABLE_NORMAL) && !mkv->is_live)
end_ebml_master_crc32_preliminary(s->pb, &mkv->info_bc, mkv, end_ebml_master_crc32_preliminary(s->pb, mkv->info_bc,
MATROSKA_ID_INFO, &mkv->info_pos); MATROSKA_ID_INFO, &mkv->info_pos);
else else
end_ebml_master_crc32(s->pb, &mkv->info_bc, mkv, MATROSKA_ID_INFO); end_ebml_master_crc32(s->pb, &mkv->info_bc, mkv, MATROSKA_ID_INFO);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment