mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avformat: add a stream event flag for new packets
This commit is contained in:
parent
201b1246e2
commit
f95d9510ff
4 changed files with 12 additions and 1 deletions
|
|
@ -1533,6 +1533,8 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
|
|||
ret = 0;
|
||||
st = s->streams[pkt->stream_index];
|
||||
|
||||
st->event_flags |= AVSTREAM_EVENT_FLAG_NEW_PACKETS;
|
||||
|
||||
/* update context if required */
|
||||
if (st->internal->need_context_update) {
|
||||
if (avcodec_is_open(st->internal->avctx)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue