Package: lsdvd Version: 0.16-3+b1 Severity: wishlist Tags: patch lsdvd does not print the sector information for the cells in the DVD. With that extra information, it becomes possible to access the DVD structure from the outside using just lsdvd's output.
The following item on lsdvd's issue tracker implements this: http://sourceforge.net/p/lsdvd/feature-requests/1/ The patch itself is very simple. Credits go to the author of the feature request. -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lsdvd depends on: ii libc6 2.17-97 ii libdvdread4 4.2.1-2 lsdvd recommends no packages. lsdvd suggests no packages. -- no debconf information
--- lsdvd-0.16.orig/lsdvd.c +++ lsdvd-0.16/lsdvd.c @@ -442,6 +442,10 @@ { dvd_info.titles[j].cells[i].length = dvdtime2msec(&pgc->cell_playback[i].playback_time)/1000.0; converttime(&dvd_info.titles[j].cells[i].playback_time, &pgc->cell_playback[i].playback_time); + /* added to get the start/end sectors */ + dvd_info.titles[j].cells[i].first_sector = pgc->cell_playback[i].first_sector; + dvd_info.titles[j].cells[i].last_sector = pgc->cell_playback[i].last_sector; + } } else { dvd_info.titles[j].cells = NULL; --- lsdvd-0.16.orig/ocode.c +++ lsdvd-0.16/ocode.c @@ -242,6 +240,9 @@ HASH(0); DEF("ix", "%d", i+1); DEF("length", "%.3f", dvd_info->titles[j].cells[i].length); + /* added to get the size information */ + DEF("first_sector", "%d", dvd_info->titles[j].cells[i].first_sector); + DEF("last_sector", "%d", dvd_info->titles[j].cells[i].last_sector); RETURN; } RETURN; --- lsdvd-0.16.orig/lsdvd.h +++ lsdvd-0.16/lsdvd.h @@ -61,6 +61,8 @@ struct { float length; playback_time_t playback_time; + int first_sector; + int last_sector; } *cells; int subtitle_count; struct {