mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-06 09:22:36 +08:00
avformat: add a stream event flag for new packets
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user