ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Thu Nov 18 22:12:40 2021 +0100| [5e01fc83181edb0bccc480f3c7f48ea928d8e444] | 
committer: Andreas Rheinhardt

avformat/dashenc: Don't use stack packet

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>

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

 libavformat/dashenc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index dd2b34afbb..3f28f5ad71 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -2342,9 +2342,7 @@ static int dash_check_bitstream(AVFormatContext *s, 
AVStream *st,
     if (oc->oformat->check_bitstream) {
         AVStream *const ost = oc->streams[0];
         int ret;
-        AVPacket pkt = *avpkt;
-        pkt.stream_index = 0;
-        ret = oc->oformat->check_bitstream(oc, ost, &pkt);
+        ret = oc->oformat->check_bitstream(oc, ost, avpkt);
         if (ret == 1) {
             FFStream *const  sti = ffstream(st);
             FFStream *const osti = ffstream(ost);

_______________________________________________
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