summaryrefslogtreecommitdiff
path: root/libavformat/img.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/img.c')
-rw-r--r--libavformat/img.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img.c b/libavformat/img.c
index 3833841176..9c47d38626 100644
--- a/libavformat/img.c
+++ b/libavformat/img.c
@@ -236,7 +236,7 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
} else {
/* XXX: computing this pts is not necessary as it is done in
the generic code too */
- pkt->pts = av_rescale((int64_t)s->img_count * s1->streams[0]->codec.frame_rate_base, s1->pts_den, s1->streams[0]->codec.frame_rate) / s1->pts_num;
+ pkt->pts = av_rescale((int64_t)s->img_count * s1->streams[0]->codec.frame_rate_base, s1->streams[0]->time_base.den, s1->streams[0]->codec.frame_rate) / s1->streams[0]->time_base.num;
s->img_count++;
s->img_number++;
return 0;