[MPlayer-cvslog] r24323 - trunk/stream/stream_dvdnav.c
    nicodvb 
    subversion at mplayerhq.hu
       
    Sat Sep  1 23:00:18 CEST 2007
    
    
  
Author: nicodvb
Date: Sat Sep  1 23:00:18 2007
New Revision: 24323
Log:
implemented STREAM_CTRL_GET_ASPECT_RATIO
Modified:
   trunk/stream/stream_dvdnav.c
Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c	(original)
+++ trunk/stream/stream_dvdnav.c	Sat Sep  1 23:00:18 2007
@@ -326,6 +326,12 @@ static int control(stream_t *stream, int
       }
       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:
     {
    
    
More information about the MPlayer-cvslog
mailing list