[FFmpeg-devel] [PATCH 2/5] avformat/dashenc: Don't use stack packet
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Fri Nov 19 21:16:49 EET 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
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);
--
2.30.2
More information about the ffmpeg-devel
mailing list