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

Nico Sabbi nsabbi at email.it
Sat Aug 4 23:54:35 CEST 2007


Carl Eugen Hoyos wrote:

>Hi Nico!
>
>On 2007-08-03 21:43, Nico Sabbi wrote:
>  
>
>>>So it's not possible to configure mplayer so stream_dvdnav.c is compiled, but
>>>stream_dvd.c is not?
>>>      
>>>
>>indeed I didn't consider this nonsense, in which case the 
>>stream_dvd_common.[ch] is the right approach
>>    
>>
>
>Possible patch attached.
>(svn cp stream/stream_dvd.c stream/stream_dvd_common.c)
>
>Carl Eugen
>  
>
> /** 
> \brief Converts DVD time structure to milliseconds.
> \param *dev the DVD time structure to convert
> \return returns the time in milliseconds
> */
>-static int dvdtimetomsec(dvd_time_t *dt)
>+int dvdtimetomsec(dvd_time_t *dt)
> {
>   static int framerates[4] = {0, 2500, 0, 2997};
>   int framerate = framerates[(dt->frame_u & 0xc0) >> 6];
>@@ -528,609 +17,3 @@
>     msec += (((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f)) * 100000 / framerate;
>   return msec;
> }
>  
>

exported symbols had better be called mp_X in order to avoid name clashes,
otherwise patch ok



More information about the MPlayer-dev-eng mailing list