First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 103299
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: optical media herd <media-optical@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ian Kumlien <pomac@vapor.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
subrip.diff Fixes for the subrip sources. patch Ian Kumlien 2005-08-21 19:24 0000 1.96 KB Details | Diff
libogmrip.diff Signedness fixes for libogmrip. patch Ian Kumlien 2005-08-21 19:24 0000 1.32 KB Details | Diff
ogmrip.diff Something more along the lines of this? patch Ian Kumlien 2005-08-22 15:46 0000 3.56 KB Details | Diff
ogmrip-0.9.0-gcc4.patch gcc4 patch patch Olivier Rolland 2005-08-24 11:57 0000 5.16 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 103299 depends on: Show dependency tree
Bug 103299 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-08-21 19:22 0000
There is some signedness 'bugs' in ogm rip, I'll attatch the diffs when this
bug
is opened. (please forward the patch or tell me to)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Ian Kumlien 2005-08-21 19:24:22 0000 -------
Created an attachment (id=66516) [edit]
Fixes for the subrip sources.

+  int pts100; /* FIXME: Should perhaps be time_t */

I don't know how large that timestamp can be, ir if it's a delta or not..

------- Comment #2 From Ian Kumlien 2005-08-21 19:24:47 0000 -------
Created an attachment (id=66517) [edit]
Signedness fixes for libogmrip.

------- Comment #3 From SpanKY 2005-08-22 05:56:00 0000 -------
-  unsigned int pts100;
+  int pts100; /* FIXME: Should perhaps be time_t */

if that comment is true then it should be fixed ... time_t is not always the
same size as int depending on the host architecture, so passing
references/pointers could cause issues

------- Comment #4 From Ian Kumlien 2005-08-22 06:21:57 0000 -------
(In reply to comment #3)
> -  unsigned int pts100;
> +  int pts100; /* FIXME: Should perhaps be time_t */
> 
> if that comment is true then it should be fixed ... time_t is not always the
> same size as int depending on the host architecture, so passing
> references/pointers could cause issues

well as i stated in the patch comment, if its just a delta or so then it's ok i
assume... but...(In reply to comment #3)

------- Comment #5 From Olivier Rolland 2005-08-22 15:24:32 0000 -------
The patch to fix the signedness in libogmrip makes ogmrip compile cleanly with
gcc4 but this is not the right way to fix this issue. In fact, there is a bug in
ogmrip_codec_get_chapters and ogmrip_codec_set_chapters definition because the
last chapter to encode might be negative if it should be the last chapter of the
title. That is, the 'end' parameter should be gint, not guint. I'll provide a
patch as soon as I'm back from holydays.

------- Comment #6 From Olivier Rolland 2005-08-22 15:33:42 0000 -------
Regarding the subrip patch, I think it should be better to change
int vobsub_get_next_packet (void *vobhandle, void **data, int *timestamp)
to
int vobsub_get_next_packet (void *vobhandle, void **data, unsigned int *timestamp)
in both vobsub.h and vobsub.c instead of removing the unsigned qualifier to
pts100 in spudec.c.

------- Comment #7 From Ian Kumlien 2005-08-22 15:46:53 0000 -------
Created an attachment (id=66595) [edit]
Something more along the lines of this?

I think i cought all of the comments, I wonder about set_chapters though,
should that also use signed ints?

------- Comment #8 From SpanKY 2005-08-22 18:09:37 0000 -------
that looks acceptable to me at a glance

perhaps try contacting the upstream maintainers too while you're at it ? :)

------- Comment #9 From Olivier Rolland 2005-08-24 11:57:15 0000 -------
Created an attachment (id=66778) [edit]
gcc4 patch

This patch improves Ian's patch: it defines the get_chapters and set_chapters
functions correctly. Thanks Ian for your work.

------- Comment #10 From Ian Kumlien 2005-08-24 13:24:46 0000 -------
(In reply to comment #9)
> This patch improves Ian's patch: it defines the get_chapters and set_chapters
> functions correctly. Thanks Ian for your work.

NP =), Glad i could help =)

------- Comment #11 From Luis Medinas (RETIRED) 2005-08-27 21:29:01 0000 -------
Patch commited in CVS. Special thanks all for your work.

First Last Prev Next    No search results available      Search page      Enter new bug