diff mbox series

[FFmpeg-devel,2/5] avformat/dashenc: Don't use stack packet

Message ID AM7PR03MB666008F2A60E4FE7518E74578F9C9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 5e01fc83181edb0bccc480f3c7f48ea928d8e444
Headers show
Series [FFmpeg-devel,1/5] avformat/avformat: Add AVStream parameter to check_bitstream() sig | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Nov. 19, 2021, 7:16 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/dashenc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

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