]> git.sesse.net Git - ffmpeg/commitdiff
avformat/webmdashenc: Remove write_trailer
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 26 Dec 2019 10:53:32 +0000 (11:53 +0100)
committerJames Almer <jamrial@gmail.com>
Sun, 15 Mar 2020 15:15:24 +0000 (12:15 -0300)
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>
libavformat/webmdashenc.c

index 26b87273048fe09f34418c03096e02d63261d2a8..d2f0e0ec4d2ed60b1df5ef665b583efc34d63db9 100644 (file)
@@ -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