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 <andreas.rheinhardt@gmail.com>
Reviewed-by: Gyan Doshi <ffmpeg@gyani.pro>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/334/head
Andreas Rheinhardt 5 years ago committed by Michael Niedermayer
parent 121b6c7aa7
commit 5603176ab4
  1. 1
      libavformat/segment.c

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

Loading…
Cancel
Save