diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-01 21:00:18 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-01 21:00:18 +0000 |
commit | 4da74f1f7bba8593574f25484ab0918639f2c401 (patch) | |
tree | 3bb9a2a739f052ea7b145270791c58cae9a9a214 | |
parent | 7ac5a60a2ba4c7d0b8c23a527ba0ede1607cbf23 (diff) |
implemented STREAM_CTRL_GET_ASPECT_RATIO
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24323 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | stream/stream_dvdnav.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index 235129db57..7f2b856b71 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -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: { |