mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
img2dec: do not change packet pts for image2pipe
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
55d32eed8f
commit
626756aed2
@ -393,7 +393,8 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
pkt->stream_index = 0;
|
pkt->stream_index = 0;
|
||||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
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;
|
pkt->size = 0;
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user