diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-26 11:53:32 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-03-15 12:15:24 -0300 |
commit | c467328f0777fd6282273c5fe43096a0924ff3b3 (patch) | |
tree | f0c6bec2205f1f0af01424787a1c0aa19b8ce86c | |
parent | 425b6a9a2c431f132c7547aee823ffb415f24350 (diff) |
avformat/webmdashenc: Remove write_trailer
It doesn't do anything: All allocated blocks have already been freed in
write_header.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/webmdashenc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c index 26b8727304..d2f0e0ec4d 100644 --- a/libavformat/webmdashenc.c +++ b/libavformat/webmdashenc.c @@ -550,12 +550,6 @@ static int webm_dash_manifest_write_packet(AVFormatContext *s, AVPacket *pkt) return AVERROR_EOF; } -static int webm_dash_manifest_write_trailer(AVFormatContext *s) -{ - free_adaptation_sets(s); - return 0; -} - #define OFFSET(x) offsetof(WebMDashMuxContext, x) static const AVOption options[] = { { "adaptation_sets", "Adaptation sets. Syntax: id=0,streams=0,1,2 id=1,streams=3,4 and so on", OFFSET(adaptation_sets), AV_OPT_TYPE_STRING, { 0 }, 0, 0, AV_OPT_FLAG_ENCODING_PARAM }, @@ -585,7 +579,6 @@ AVOutputFormat ff_webm_dash_manifest_muxer = { .priv_data_size = sizeof(WebMDashMuxContext), .write_header = webm_dash_manifest_write_header, .write_packet = webm_dash_manifest_write_packet, - .write_trailer = webm_dash_manifest_write_trailer, .priv_class = &webm_dash_class, }; #endif |