beandog 14/08/26 16:14:53
Added: lsdvd-0.16-chapter-count.patch
lsdvd-0.16-newline.patch
Log:
Add patches for removing extra newlines, and fixing chapter count display
(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path
1.1 media-video/lsdvd/files/lsdvd-0.16-chapter-count.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/lsdvd/files/lsdvd-0.16-chapter-count.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/lsdvd/files/lsdvd-0.16-chapter-count.patch?rev=1.1&content-type=text/plain
Index: lsdvd-0.16-chapter-count.patch
===================================================================
Using tt_srpt->title[].nr_of_ptts from the VMG IFO as a reference to the
chapter count is often wrong, and noted as such in the source code. Use
the program chain instead.
--- lsdvd-0.16/lsdvd.c.orig 2014-08-22 21:47:06.009490680 -0600
+++ lsdvd-0.16/lsdvd.c 2014-08-22 21:47:30.947257942 -0600
@@ -347,6 +347,7 @@
}
dvd_info.titles[j].chapter_count_reported =
ifo_zero->tt_srpt->title[j].nr_of_ptts;
+ dvd_info.titles[j].chapter_count = pgc->nr_of_programs;
dvd_info.titles[j].cell_count = pgc->nr_of_cells;
dvd_info.titles[j].audiostream_count =
vtsi_mat->nr_of_vts_audio_streams;
dvd_info.titles[j].subtitle_count =
vtsi_mat->nr_of_vts_subp_streams;
--- lsdvd-0.16/ohuman.c.orig 2014-08-22 21:47:00.993538145 -0600
+++ lsdvd-0.16/ohuman.c 2014-08-22 21:47:45.533121749 -0600
@@ -20,7 +20,7 @@
// (int)(dvd_info->titles[j].general.length / 60)
% 60,
//
(float)((int)(dvd_info->titles[j].general.length * 1000) % 6000) / 1000); //,
// dvd_info->titles[j].general.length);
- printf("Chapters: %02d, Cells: %02d, ",
dvd_info->titles[j].chapter_count_reported, dvd_info->titles[j].cell_count);
+ printf("Chapters: %02d, Cells: %02d, ",
dvd_info->titles[j].chapter_count, dvd_info->titles[j].cell_count);
printf("Audio streams: %02d, Subpictures: %02d",
dvd_info->titles[j].audiostream_count, dvd_info->titles[j].subtitle_count);
printf("\n");
1.1 media-video/lsdvd/files/lsdvd-0.16-newline.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/lsdvd/files/lsdvd-0.16-newline.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/lsdvd/files/lsdvd-0.16-newline.patch?rev=1.1&content-type=text/plain
Index: lsdvd-0.16-newline.patch
===================================================================
Removes extra newline from output like this:
Title: 01, Length: 02:18:41.834 Chapters: 06, Cells: 06, Audio streams: 01,
Subpictures: 03
Title: 02, Length: 00:46:16.000 Chapters: 03, Cells: 03, Audio streams: 01,
Subpictures: 03
Title: 03, Length: 00:46:11.834 Chapters: 03, Cells: 03, Audio streams: 01,
Subpictures: 03
--- lsdvd-0.16/ohuman.c.orig 2014-08-22 21:47:00.993538145 -0600
+++ lsdvd-0.16/ohuman.c 2014-08-22 21:52:11.964633226 -0600
@@ -111,11 +111,10 @@
printf("\n");
}
}
- printf("\n");
}
}
if (! opt_t) {
- printf("Longest track: %02d\n\n", dvd_info->longest_track);
+ printf("Longest track: %02d\n", dvd_info->longest_track);
}
}