Commit c1cf203b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avformat: correctly detect the fps

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 88041dfe
...@@ -302,7 +302,7 @@ int OpenDemux( vlc_object_t *p_this ) ...@@ -302,7 +302,7 @@ int OpenDemux( vlc_object_t *p_this )
} }
psz_type = "video"; psz_type = "video";
fmt.video.i_frame_rate = cc->time_base.den; fmt.video.i_frame_rate = cc->time_base.den;
fmt.video.i_frame_rate_base = cc->time_base.num; fmt.video.i_frame_rate_base = cc->time_base.num * __MAX( cc->ticks_per_frame, 1 );
break; break;
case CODEC_TYPE_SUBTITLE: case CODEC_TYPE_SUBTITLE:
......
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