From d20ff3542d773c79bf00007a356816e8bc631465 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 1 Sep 2007 15:51:41 +0000 Subject: implemented STREAM_CTRL_GET_ASPECT_RATIO git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24318 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stream/stream_dvd.c') diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index ff91ca2083..c5b027733e 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -737,6 +737,11 @@ static int control(stream_t *stream,int cmd,void* arg) return 1; break; } + case STREAM_CTRL_GET_ASPECT_RATIO: + { + *((double *)arg) = !d->vts_file->vtsi_mat->vts_video_attr.display_aspect_ratio ? 4.0/3.0 : 16.0/9.0; + return 1; + } } return STREAM_UNSUPPORTED; } -- cgit v1.2.3