mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libxvid: Drop PPC-specific CPU detection hack
It is doubtful if the hack (still) works and Xvid had ten years to fix it.
This commit is contained in:
parent
7bdd2ff682
commit
67bc1ba5d7
@ -436,19 +436,7 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx) {
|
|||||||
|
|
||||||
xvid_gbl_init.version = XVID_VERSION;
|
xvid_gbl_init.version = XVID_VERSION;
|
||||||
xvid_gbl_init.debug = 0;
|
xvid_gbl_init.debug = 0;
|
||||||
|
|
||||||
#if ARCH_PPC
|
|
||||||
/* Xvid's PPC support is borked, use libavcodec to detect */
|
|
||||||
#if HAVE_ALTIVEC
|
|
||||||
if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
|
|
||||||
xvid_gbl_init.cpu_flags = XVID_CPU_FORCE | XVID_CPU_ALTIVEC;
|
|
||||||
} else
|
|
||||||
#endif
|
|
||||||
xvid_gbl_init.cpu_flags = XVID_CPU_FORCE;
|
|
||||||
#else
|
|
||||||
/* Xvid can detect on x86 */
|
|
||||||
xvid_gbl_init.cpu_flags = 0;
|
xvid_gbl_init.cpu_flags = 0;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Initialize */
|
/* Initialize */
|
||||||
xvid_global(NULL, XVID_GBL_INIT, &xvid_gbl_init, NULL);
|
xvid_global(NULL, XVID_GBL_INIT, &xvid_gbl_init, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user