summaryrefslogtreecommitdiff
path: root/libavformat/oggparsedirac.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-16 00:29:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-16 01:31:09 +0200
commit46f52274f38d61102bba38961a02b1938003a514 (patch)
treeae5f1091542853c02c360c3a5940595b3eb60596 /libavformat/oggparsedirac.c
parent7b6a97edd1b50c03ec9b30f5806a72036923bee4 (diff)
avformat/oggparsedirac: use AVCodecContext.framerate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggparsedirac.c')
-rw-r--r--libavformat/oggparsedirac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggparsedirac.c b/libavformat/oggparsedirac.c
index 73bc495aa8..10fb07e92d 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;
}