[FFmpeg-cvslog] avformat/dashenc: Don't use stack packet

Andreas Rheinhardt git at videolan.org
Sat Nov 27 14:19:24 EET 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at 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.rheinhardt at 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);



More information about the ffmpeg-cvslog mailing list