Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: source/patched-ffmpeg-mt/libavcodec/ppc/dsputil_ppc.c

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: source/patched-ffmpeg-mt/libavcodec/ppc/dsputil_ppc.c
===================================================================
--- source/patched-ffmpeg-mt/libavcodec/ppc/dsputil_ppc.c (revision 59334)
+++ source/patched-ffmpeg-mt/libavcodec/ppc/dsputil_ppc.c (working copy)
@@ -20,22 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/cpu.h"
#include "libavcodec/dsputil.h"
#include "dsputil_altivec.h"
-int mm_flags = 0;
-
-int mm_support(void)
-{
- int result = 0;
-#if HAVE_ALTIVEC
- if (has_altivec()) {
- result |= FF_MM_ALTIVEC;
- }
-#endif /* result */
- return result;
-}
-
/* ***** WARNING ***** WARNING ***** WARNING ***** */
/*
clear_blocks_dcbz32_ppc will not work properly on PowerPC processors with a
@@ -181,9 +169,7 @@
#if HAVE_ALTIVEC
if(CONFIG_H264_DECODER) dsputil_h264_init_ppc(c, avctx);
- if (has_altivec()) {
- mm_flags |= FF_MM_ALTIVEC;
-
+ if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
dsputil_init_altivec(c, avctx);
if(CONFIG_VC1_DECODER)
vc1dsp_init_altivec(c, avctx);
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/ppc/dsputil_altivec.h ('k') | source/patched-ffmpeg-mt/libavcodec/ppc/h264_altivec.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698