[MPlayer-dev-eng] [PATCH] dvdnav part 2 - still frames

Nico Sabbi nsabbi at email.it
Mon Jul 30 15:09:07 CEST 2007


Ötvös Attila wrote:

>@@ -138,9 +138,25 @@
>   }
> }
> 
>+//
>+// convert dvd time to millisec
>+//
>+static int dvdtimetomsec(dvd_time_t *dt)
>+{
>+  static int framerates[4] = {0, 2500, 0, 2997};
>+  int framerate = framerates[(dt->frame_u & 0xc0) >> 6];
>+  int msec = ((dt->hour >> 4) * 10 + (dt->hour & 0x0f)) * 3600000;
>+  msec += ((dt->minute >> 4) * 10 + (dt->minute & 0x0f)) * 60000;
>+  msec += ((dt->second >> 4) * 10 + (dt->second & 0x0f)) * 1000;
>+  if(framerate > 0)
>+    msec += (((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f)) * 100000 / framerate;
>+  return msec;
>+}
>+
>  
>


didn't I tell you to export and reuse dvdtimetomsec() ?

>     dvdnav_menu_call(priv->dvdnav, DVD_MENU_Root);
>+// **FIXME** disable to test still frame with still_length
>+#if 0
>  
>

those #if0 are useless, better remove the enclosed code.
The rest it still too dependend on the other issues reported (dvdread 
nav code,
libmpeg2 empty frame) that need to be resolved _cleanly_ first


 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Entra in Mondolastminute, centinaia di offerte ti aspettano per le tue vacanze a prezzi lastminute!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?midh51&d0-7



More information about the MPlayer-dev-eng mailing list