summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-01 15:51:41 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-01 15:51:41 +0000
commitd20ff3542d773c79bf00007a356816e8bc631465 (patch)
treece3aadf06364112333a1b23ce3296f46838385a2 /stream/stream_dvd.c
parent818cc0cf0d4618ce9cda5852f7adffd23be0820b (diff)
downloadmpv-d20ff3542d773c79bf00007a356816e8bc631465.tar.bz2
mpv-d20ff3542d773c79bf00007a356816e8bc631465.tar.xz
implemented STREAM_CTRL_GET_ASPECT_RATIO
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24318 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c5
1 files changed, 5 insertions, 0 deletions
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;
}