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:
parent
c90b3661fa
commit
a5ee166327
10 changed files with 36 additions and 27 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue