Merge commit 'e1eb0fc960163402bbb4e630185790488f7d28ed'
* commit 'e1eb0fc960163402bbb4e630185790488f7d28ed': movenc: Use packets in interleaving queues for the duration at the end of fragments Merged-by: Matthieu Bouron <matthieu.bouron@stupeflix.com>
This commit is contained in:
@@ -1041,6 +1041,17 @@ int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out,
|
||||
}
|
||||
}
|
||||
|
||||
const AVPacket *ff_interleaved_peek(AVFormatContext *s, int stream)
|
||||
{
|
||||
AVPacketList *pktl = s->internal->packet_buffer;
|
||||
while (pktl) {
|
||||
if (pktl->pkt.stream_index == stream)
|
||||
return &pktl->pkt;
|
||||
pktl = pktl->next;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Interleave an AVPacket correctly so it can be muxed.
|
||||
* @param out the interleaved packet will be output here
|
||||
|
||||
Reference in New Issue
Block a user