[FFmpeg-cvslog] avformat/segment: Don't set extradata size twice

Andreas Rheinhardt git at videolan.org
Tue Mar 3 01:13:03 EET 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Mon Mar  2 05:35:20 2020 +0100| [5603176ab4aaf811cac67420f234b3778e887278] | committer: Michael Niedermayer

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 at gmail.com>
Reviewed-by: Gyan Doshi <ffmpeg at gyani.pro>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5603176ab4aaf811cac67420f234b3778e887278
---

 libavformat/segment.c | 1 -
 1 file changed, 1 deletion(-)

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;
         }
     }
 



More information about the ffmpeg-cvslog mailing list