Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158143 - x11-misc/xvidcap-1.1.4 produces invalid xwd files
Summary: x11-misc/xvidcap-1.1.4 produces invalid xwd files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Highest normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-14 07:50 UTC by Branko Majic
Modified: 2007-02-03 14:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
xvidcap-1.1.4-xtoxwd.c.patch (xvidcap-1.1.4-xtoxwd.c.patch,1.94 KB, patch)
2007-01-10 11:00 UTC, Krzysztof Pawlik (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Branko Majic 2006-12-14 07:50:35 UTC
Whenever I use xvidcap to capture single frames into the xwd format, it creates xwd files that cannot be handled by ANY program that I tried.
Bug is always reproducable:
1) Activate the xvidcap
2) Select single-frame capture, and select xwd format for the single-frame capture
3) Do the screen-capture - any amount of frames will do
4) Try to convert/open any of the swt files the xvidcap produced. For example, with ImageMagick's "convert file.xwd png:file.png" I get the following error:

convert: Unexpected end-of-file `test-0000.xwd': No such file or directory.

If I try to use "convert" on a file produced by the "xwd" utility, it all works just fine. I have also tried using "The GIMP". It reports some other kind of error, but I don't think that this is the problem with those 2 packages. Besides that, I have noticed another user on the forum has the same problem on an AMD64 architecture, so this might be a arch-specific bug.
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-01-10 11:00:05 UTC
Created attachment 106334 [details, diff]
xvidcap-1.1.4-xtoxwd.c.patch

Probably an issue with sizeof(long) != sizeof(int). Try this patch.
Comment 2 Branko Majic 2007-01-10 16:35:55 UTC
Thanks. The patch has fixed the problem. Since this is an arch-related problem (I guess), should this patch be added to Gentoo repository? If so, can the maintainer of this package please add this patch to the AMD64 arch portage, and modify the ebuild script appropriatelly?
Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-02-03 14:15:19 UTC
1.1.4 has it.