Commit 252316c8 authored by Michael Niedermayer's avatar Michael Niedermayer

img2dec: fix -loop

This fixes a infinite loop with -loop and -vframes
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0b68ebc4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment