summaryrefslogtreecommitdiff
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-18 21:48:49 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-27 12:55:41 +0100
commita5ee1663270cd15fa4d5f40d384a8d9eab4f7218 (patch)
tree18b4821e4f298b96c9e6e32bfba6c2181dbd5b8b /libavformat/mux.c
parentc90b3661fadcec98ab6462ac9f8180aa0cb8ec62 (diff)
avformat/avformat: Add AVStream parameter to check_bitstream() sig
For most check_bitstream() functions this just avoids having to dereference s->streams[pkt->stream_index] themselves; but for meta-muxers it will allow to forward the packet to stream with a different stream_index (belonging to a different AVFormatContext) without using a spare packet. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index 1389bcc003..d93dc73f8e 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -1074,7 +1074,7 @@ static int check_bitstream(AVFormatContext *s, FFStream *sti, AVPacket *pkt)
if (s->oformat->check_bitstream) {
if (!sti->bitstream_checked) {
- if ((ret = s->oformat->check_bitstream(s, pkt)) < 0)
+ if ((ret = s->oformat->check_bitstream(s, &sti->pub, pkt)) < 0)
return ret;
else if (ret == 1)
sti->bitstream_checked = 1;