[FFmpeg-cvslog] avformat/oggparsedirac: use AVCodecContext.framerate

Michael Niedermayer git at videolan.org
Thu Oct 16 01:43:27 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 16 00:29:14 2014 +0200| [46f52274f38d61102bba38961a02b1938003a514] | committer: Michael Niedermayer

avformat/oggparsedirac: use AVCodecContext.framerate

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/oggparsedirac.c b/libavformat/oggparsedirac.c
index 73bc495..10fb07e 100644
--- a/libavformat/oggparsedirac.c
+++ b/libavformat/oggparsedirac.c
@@ -43,7 +43,7 @@ static int dirac_header(AVFormatContext *s, int idx)
     st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
     st->codec->codec_id = AV_CODEC_ID_DIRAC;
     // dirac in ogg always stores timestamps as though the video were interlaced
-    avpriv_set_pts_info(st, 64, st->codec->time_base.num, 2*st->codec->time_base.den);
+    avpriv_set_pts_info(st, 64, st->codec->framerate.den, 2*st->codec->framerate.num);
     return 1;
 }
 



More information about the ffmpeg-cvslog mailing list