Package: lsdvd
Version: 0.16-3+b1
Severity: normal
Tags: patch

I noticed that dvdxchap and disagreed on the subsecond resolution of (for 
example) chapter durations. Initially I thought that the two simply used a 
different scale (frames vs milliseconds), but when I looked at the source the 
reason was much simpler :)

Attached is a patch to fix the problem.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (900, 'stable'), (300, 'squeeze'), (300, 
'unstable'), (200, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.36 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lsdvd depends on:
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  libdvdread4                   4.1.3-10   library for reading DVDs

lsdvd recommends no packages.

lsdvd suggests no packages.

-- no debconf information
95c95
<       ms += ((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f) * 1000.0 / 
fps;
---
>               ms += (((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f)) 
> * 1000.0 / fps;
110c110
<       pt->usec = pt->usec + ((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 
0x0f) * 1000.0 / fps;
---
>       pt->usec = pt->usec + (((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 
> 0x0f)) * 1000.0 / fps;

Reply via email to