projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2deb614
)
x86: h264dsp: Fix link failure with optimizations disabled
author
Diego Biurrun
<diego@biurrun.de>
Wed, 25 Jun 2014 11:35:30 +0000
(
04:35
-0700)
committer
Diego Biurrun
<diego@biurrun.de>
Wed, 25 Jun 2014 22:24:51 +0000
(15:24 -0700)
With optimzations disabled compilers have trouble doing dead code
elimination on 'if (foo && 0)' expressions, while 'if (0 && foo)'
still works, so use the latter to avoid problems.
Bug-Id: 707
libavcodec/x86/h264dsp_init.c
patch
|
blob
|
history
diff --git
a/libavcodec/x86/h264dsp_init.c
b/libavcodec/x86/h264dsp_init.c
index
427662f
..
134d594
100644
(file)
--- a/
libavcodec/x86/h264dsp_init.c
+++ b/
libavcodec/x86/h264dsp_init.c
@@
-212,7
+212,7
@@
av_cold void ff_h264dsp_init_x86(H264DSPContext *c, const int bit_depth,
{
int cpu_flags = av_get_cpu_flags();
- if (
chroma_format_idc <= 1 && EXTERNAL_MMXEXT(cpu_flags)
)
+ if (
EXTERNAL_MMXEXT(cpu_flags) && chroma_format_idc <= 1
)
c->h264_loop_filter_strength = ff_h264_loop_filter_strength_mmxext;
if (bit_depth == 8) {