[FFmpeg-cvslog] img2dec: fix -loop
Michael Niedermayer
git at videolan.org
Tue Jan 8 20:42:15 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan 8 20:06:09 2013 +0100| [252316c88598420df1120696f46a532a5ae502a4] | committer: Michael Niedermayer
img2dec: fix -loop
This fixes a infinite loop with -loop and -vframes
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=252316c88598420df1120696f46a532a5ae502a4
---
libavformat/img2dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list