Commit e4d87675 authored by philipjsg's avatar philipjsg

Set the pkt->pts field correctly so that frame rate reduction has a chance

of working


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1243 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7b171594
......@@ -237,6 +237,7 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
av_free_packet(pkt);
return -EIO; /* signal EOF */
} else {
pkt->pts = ((INT64)s->img_number * s1->pts_den * FRAME_RATE_BASE) / (s1->streams[0]->codec.frame_rate * s1->pts_num);
s->img_number++;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment