Opened 20 years ago
Closed 20 years ago
#693 closed patch (fixed)
PATCH: mythtranscode compile fix
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | 0.19 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | mythtranscode osx mpeg2fix compile |
Cc: | Ticket locked: | no |
Description
On os x the new mpeg2 code in mythtranscode does not compile for several reasons:
1) malloc.h is not found (doesn't exist and is not needed on osx?) 2) there is no function called open64() on os x (I think this is for large file support however open() seems to work fine on os x) 3) there is no memalign() function on os x because malloc() returns aligned memory by default
The attached patch corrects all of these issues. It compiles cleanly and I have tested it on one recording. It would be interesting to see if it will work on files > 2 gb.
Attachments (1)
Change History (4)
by , 20 years ago
Attachment: | transcodePatch.diff added |
---|
comment:1 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 20 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
unfortunately, os x also lacks a O_LARGEFILE definition so this fix doesn't exactly work. (Great OS huh?) I'm pretty sure (TM) that just plain old open works for large files on os x.
mpeg2fix.cpp:284: error: `O_LARGEFILE' undeclared (first use this function)
the open() man page says nothing about large files on os x
patch to fix compile