mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/oggparsedirac: use AVCodecContext.framerate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7b6a97edd1
commit
46f52274f3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user