[FFmpeg-cvslog] avformat/vobsub: use av_make_q().

Clément Bœsch git at videolan.org
Thu May 1 16:22:12 CEST 2014


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Thu May  1 16:18:12 2014 +0200| [b7dd250b7545ece973bd4c92fd7f93ce042fa911] | committer: Clément Bœsch

avformat/vobsub: use av_make_q().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b7dd250b7545ece973bd4c92fd7f93ce042fa911
---

 libavformat/mpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index d0b1527..d70a5ab 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) {



More information about the ffmpeg-cvslog mailing list