summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-05-01 16:18:12 +0200
committerClément Bœsch <u@pkh.me>2014-05-01 16:18:12 +0200
commitb7dd250b7545ece973bd4c92fd7f93ce042fa911 (patch)
treec6e906be9c24d6ffaa8462eec50f2d10d0429b2f /libavformat/mpeg.c
parent6a3a7d7af1b650ea3ca21bb71b32648c12c01403 (diff)
avformat/vobsub: use av_make_q().
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index d0b1527273..d70a5ab9be 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -757,7 +757,7 @@ static int vobsub_read_header(AVFormatContext *s)
break;
}
timestamp = (hh*3600LL + mm*60LL + ss) * 1000LL + ms + delay;
- timestamp = av_rescale_q(timestamp, (AVRational){1,1000}, st->time_base);
+ timestamp = av_rescale_q(timestamp, av_make_q(1, 1000), st->time_base);
sub = ff_subtitles_queue_insert(&vobsub->q[s->nb_streams - 1], "", 0, 0);
if (!sub) {