mirror of https://github.com/mpv-player/mpv
100l, fix frametime calculation for MPEG-2 files with frame rate extension.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30966 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
28ff7246a0
commit
df61424414
|
@ -324,7 +324,7 @@ mpeg_header_parser:
|
||||||
if(!sh_video->fps){
|
if(!sh_video->fps){
|
||||||
sh_video->frametime=0;
|
sh_video->frametime=0;
|
||||||
} else {
|
} else {
|
||||||
sh_video->frametime=1.0/picture.fps;
|
sh_video->frametime=1.0/sh_video->fps;
|
||||||
}
|
}
|
||||||
sh_video->disp_w=picture.display_picture_width;
|
sh_video->disp_w=picture.display_picture_width;
|
||||||
sh_video->disp_h=picture.display_picture_height;
|
sh_video->disp_h=picture.display_picture_height;
|
||||||
|
|
Loading…
Reference in New Issue