Skip to content
Snippets Groups Projects
Commit 626756ae authored by Paul B Mahol's avatar Paul B Mahol
Browse files

img2dec: do not change packet pts for image2pipe


Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent 55d32eed
No related branches found
No related tags found
No related merge requests found
......@@ -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++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment