diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-01-08 20:50:26 +0400 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-01-08 20:51:18 +0400 |
commit | 626756aed2ddb2d78afcef0f900726dabd18f2d9 (patch) | |
tree | 66dda59ee344c119dc68e355d69377013386cce2 /libavformat/img2dec.c | |
parent | 55d32eed8f2d32611de127a9aa93f9845e465919 (diff) |
img2dec: do not change packet pts for image2pipe
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 3 |
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++) { |