From 626756aed2ddb2d78afcef0f900726dabd18f2d9 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 8 Jan 2013 16:50:26 +0000 Subject: [PATCH] img2dec: do not change packet pts for image2pipe Signed-off-by: Paul B Mahol --- libavformat/img2dec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index ff9c3fdee2..de8a64fce4 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++) {