Commit 9ec89710 authored by Anton Khirnov's avatar Anton Khirnov

bink demuxer: set framerate.

parent 1730ca2e
...@@ -112,6 +112,7 @@ static int read_header(AVFormatContext *s) ...@@ -112,6 +112,7 @@ static int read_header(AVFormatContext *s)
return AVERROR(EIO); return AVERROR(EIO);
} }
avpriv_set_pts_info(vst, 64, fps_den, fps_num); avpriv_set_pts_info(vst, 64, fps_den, fps_num);
vst->avg_frame_rate = av_inv_q(vst->time_base);
vst->codec->codec_type = AVMEDIA_TYPE_VIDEO; vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
vst->codec->codec_id = AV_CODEC_ID_BINKVIDEO; vst->codec->codec_id = AV_CODEC_ID_BINKVIDEO;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment