mirror of https://github.com/mpv-player/mpv
implemented STREAM_CTRL_GET_ASPECT_RATIO
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24323 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7ac5a60a2b
commit
4da74f1f7b
|
@ -326,6 +326,12 @@ static int control(stream_t *stream, int cmd, void* arg) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case STREAM_CTRL_GET_ASPECT_RATIO:
|
||||
{
|
||||
uint8_t ar = dvdnav_get_video_aspect(priv->dvdnav);
|
||||
*((double *)arg) = !ar ? 4.0/3.0 : 16.0/9.0;
|
||||
return 1;
|
||||
}
|
||||
#ifdef MP_DVDNAV
|
||||
case STREAM_CTRL_GET_CURRENT_TIME:
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue