[FFmpeg-cvslog] img2dec: do not change packet pts for image2pipe
Paul B Mahol
git at videolan.org
Tue Jan 8 18:15:59 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Jan 8 16:50:26 2013 +0000| [626756aed2ddb2d78afcef0f900726dabd18f2d9] | committer: Paul B Mahol
img2dec: do not change packet pts for image2pipe
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=626756aed2ddb2d78afcef0f900726dabd18f2d9
---
libavformat/img2dec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index ff9c3fd..de8a64f 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -393,7 +393,8 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
return AVERROR(ENOMEM);
pkt->stream_index = 0;
pkt->flags |= AV_PKT_FLAG_KEY;
- pkt->pts = s->img_number - s->img_first;
+ if (!s->is_pipe)
+ pkt->pts = s->img_number - s->img_first;
pkt->size = 0;
for (i = 0; i < 3; i++) {
More information about the ffmpeg-cvslog
mailing list