#1760 closed defect (fixed)
Don't use VDA on Snow Leopard/ppc
Reported by: | Jeremy Huddleston | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | vda ppc |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
In determining whether or not to use VDA, configure just checks for the header's existence:
# check for VDA header if ! disabled vda; then if check_header VideoDecodeAcceleration/VDADecoder.h; then enable vda add_extralibs -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore fi fi
but VideoDecodeAcceleration is intel-only and will cause ppc slices to fail to build.
Change History (8)
comment:1 by , 12 years ago
Component: | undetermined → avcodec |
---|---|
Keywords: | vda added |
comment:2 by , 12 years ago
Component: | avcodec → undetermined |
---|---|
Status: | new → open |
Version: | unspecified → git-master |
Imo, this should definitely be fixed in configure, not in the library.
comment:3 by , 12 years ago
That would only be possible if you can do per-arch choices into config.h, but it doesn't look like your build system supports this:
#ifdef ppc
#define CONFIG_H264_VDA_DECODER 0
#define CONFIG_H264_VDA_HWACCEL 0
#else
#define CONFIG_H264_VDA_DECODER 1
#define CONFIG_H264_VDA_HWACCEL 1
#endif
comment:4 by , 12 years ago
Ie, you need to compile *different* C code for the different archs at the same time... the only way to do this is by changing the library to do something different for ppc than for intel...
comment:5 by , 12 years ago
The ffmpeg build system is already broken in other areas for universal builds, but I'd rather not add to that problem...
follow-up: 8 comment:6 by , 12 years ago
It is not broken, it is behaving exactly as intended. If you want two architectures, build twice. You can still merge them afterwards to get a universal binary.
comment:7 by , 12 years ago
Keywords: | ppc added |
---|---|
Resolution: | → fixed |
Status: | open → closed |
Fixed by Sebastien
comment:8 by , 12 years ago
Replying to reimar:
It is not broken, it is behaving exactly as intended. If you want two architectures, build twice. You can still merge them afterwards to get a universal binary.
broken by design is still broken.
It doesn't seem right to disable VDA across all slices just because it's not available on ppc, so I would suggest updating with a patch like:
This caused the darwin/ppc fate builds to start failing when I updated them from Leopard to Snow Leopard:
http://fate.ffmpeg.org/history.cgi?slot=ppc-darwin-gcc-4.2.1