diff options
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index de8a64f..c3f5bdb 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -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; |