mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-04 01:36:07 +00:00
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>
This commit is contained in:
parent
121b6c7aa7
commit
5603176ab4
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user