You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/utils: do not wait for packets from discarded streams for genpts
Fixes long loop Fixes Ticket3208 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1634,7 +1634,8 @@ int av_read_frame(AVFormatContext *s, AVPacket *pkt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* read packet from packet buffer, if there is data */
|
/* read packet from packet buffer, if there is data */
|
||||||
if (!(next_pkt->pts == AV_NOPTS_VALUE &&
|
st = s->streams[next_pkt->stream_index];
|
||||||
|
if (!(next_pkt->pts == AV_NOPTS_VALUE && st->discard < AVDISCARD_ALL &&
|
||||||
next_pkt->dts != AV_NOPTS_VALUE && !eof)) {
|
next_pkt->dts != AV_NOPTS_VALUE && !eof)) {
|
||||||
ret = read_from_packet_buffer(&s->packet_buffer,
|
ret = read_from_packet_buffer(&s->packet_buffer,
|
||||||
&s->packet_buffer_end, pkt);
|
&s->packet_buffer_end, pkt);
|
||||||
|
Reference in New Issue
Block a user