From 5603176ab4aaf811cac67420f234b3778e887278 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 2 Mar 2020 05:35:20 +0100 Subject: avformat/segment: Don't set extradata size twice ff_alloc_extradata() already sets the size of the extradata so doing it again is unnecessary. Signed-off-by: Andreas Rheinhardt Reviewed-by: Gyan Doshi Signed-off-by: Michael Niedermayer --- libavformat/segment.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavformat/segment.c') diff --git a/libavformat/segment.c b/libavformat/segment.c index bf9e706c1c..6ba7c51447 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -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; } } -- cgit v1.2.3