From 4da74f1f7bba8593574f25484ab0918639f2c401 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 1 Sep 2007 21:00:18 +0000 Subject: implemented STREAM_CTRL_GET_ASPECT_RATIO git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24323 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvdnav.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'stream') 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: { -- cgit v1.2.3