mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-24 00:30:57 +08:00
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>
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user