ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@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.rheinha...@gmail.com>
Reviewed-by: Gyan Doshi <ffm...@gyani.pro>
Signed-off-by: Michael Niedermayer <mich...@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;
         }
     }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to