]> git.sesse.net Git - ffmpeg/commitdiff
avformat/segment: Don't set extradata size twice
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 2 Mar 2020 04:35:20 +0000 (05:35 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 2 Mar 2020 22:30:39 +0000 (23:30 +0100)
ff_alloc_extradata() already sets the size of the extradata so doing it
again is unnecessary.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Gyan Doshi <ffmpeg@gyani.pro>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/segment.c

index bf9e706c1c301f41929e0c9e46451cd4cc217b9a..6ba7c514478a60d7d75e2be026380b01b87cc053 100644 (file)
@@ -882,7 +882,6 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
                 goto calc_times;
             }
             memcpy(st->codecpar->extradata, pkt_extradata, pkt_extradata_size);
-            st->codecpar->extradata_size = pkt_extradata_size;
         }
     }