aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-01-08 16:50:26 +0000
committerPaul B Mahol <onemda@gmail.com>2013-01-08 16:51:18 +0000
commit626756aed2ddb2d78afcef0f900726dabd18f2d9 (patch)
tree66dda59ee344c119dc68e355d69377013386cce2
parent55d32eed8f2d32611de127a9aa93f9845e465919 (diff)
downloadffmpeg-626756aed2ddb2d78afcef0f900726dabd18f2d9.tar.gz
img2dec: do not change packet pts for image2pipe
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavformat/img2dec.c3
1 files changed, 2 insertions, 1 deletions
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++) {