Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-19 00:12:40 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-27 14:55:41 +0300
commit5e01fc83181edb0bccc480f3c7f48ea928d8e444 (patch)
tree938bbc52f2a533c6d6aa50d5026f1557bae14ac4 /libavformat/dashenc.c
parenta5ee1663270cd15fa4d5f40d384a8d9eab4f7218 (diff)
avformat/dashenc: Don't use stack packet
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r--libavformat/dashenc.c4
1 files changed, 1 insertions, 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);