mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
img2dec: fix -loop
This fixes a infinite loop with -loop and -vframes Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0b68ebc4b6
commit
252316c885
@ -393,7 +393,7 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
|
||||
return AVERROR(ENOMEM);
|
||||
pkt->stream_index = 0;
|
||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||
if (!s->is_pipe)
|
||||
if (!s->is_pipe && !s->loop)
|
||||
pkt->pts = s->img_number - s->img_first;
|
||||
|
||||
pkt->size = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user