Commit c3339878 authored by Clément Bœsch's avatar Clément Bœsch

vp9: fix compilation with !HAVE_FAST_64BIT.

Spotted-by: 's avatarCarl Eugen Hoyos <cehoyos@ag.or.at>
parent 0d4d2233
...@@ -1302,7 +1302,7 @@ static av_always_inline void setctx_2d(uint8_t *ptr, int w, int h, ...@@ -1302,7 +1302,7 @@ static av_always_inline void setctx_2d(uint8_t *ptr, int w, int h,
ptr += stride; ptr += stride;
} while (--h); } while (--h);
#else #else
uint32_t l32 = v * 0x01010101; uint32_t v32 = v * 0x01010101;
do { do {
AV_WN32A(ptr, v32); AV_WN32A(ptr, v32);
AV_WN32A(ptr + 4, v32); AV_WN32A(ptr + 4, v32);
...@@ -1910,13 +1910,13 @@ static void decode_mode(AVCodecContext *ctx) ...@@ -1910,13 +1910,13 @@ static void decode_mode(AVCodecContext *ctx)
case 2: AV_WN16A(&var, val * 0x0101); break; \ case 2: AV_WN16A(&var, val * 0x0101); break; \
case 4: AV_WN32A(&var, val * 0x01010101); break; \ case 4: AV_WN32A(&var, val * 0x01010101); break; \
case 8: { \ case 8: { \
uint32_t v32 = val * 0x01010101); \ uint32_t v32 = val * 0x01010101; \
AV_WN32A( &var, v32); \ AV_WN32A( &var, v32); \
AV_WN32A(&((uint8_t *) &var)[4], v32); \ AV_WN32A(&((uint8_t *) &var)[4], v32); \
break; \ break; \
} \ } \
case 16: { \ case 16: { \
uint32_t v32 = val * 0x01010101); \ uint32_t v32 = val * 0x01010101; \
AV_WN32A( &var, v32); \ AV_WN32A( &var, v32); \
AV_WN32A(&((uint8_t *) &var)[4], v32); \ AV_WN32A(&((uint8_t *) &var)[4], v32); \
AV_WN32A(&((uint8_t *) &var)[8], v32); \ AV_WN32A(&((uint8_t *) &var)[8], v32); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment