Mercurial > mplayer.hg
changeset 24303:21d181441aa4
implemented STREAM_CTRL_GET_ASPECT_RATIO
author | nicodvb |
---|---|
date | Sat, 01 Sep 2007 21:00:18 +0000 |
parents | 7d58773ead24 |
children | 032c82a7a053 |
files | stream/stream_dvdnav.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvdnav.c Sat Sep 01 20:56:45 2007 +0000 +++ b/stream/stream_dvdnav.c Sat Sep 01 21:00:18 2007 +0000 @@ -326,6 +326,12 @@ } 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: {