diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-03-02 05:35:20 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-03-02 23:30:39 +0100 |
commit | 5603176ab4aaf811cac67420f234b3778e887278 (patch) | |
tree | f88bfcc5701c53b9071da09e2cd93793537c7220 /libavformat | |
parent | 121b6c7aa741edbe976dd9ff2ad25b85baabe61b (diff) | |
download | ffmpeg-5603176ab4aaf811cac67420f234b3778e887278.tar.gz |
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>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/segment.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } } |