Revision 63613fe6 libavcodec/pcm.c

View differences:

libavcodec/pcm.c
214 214
            *dst++ = v - 128;
215 215
        }
216 216
        break;
217
#ifdef WORDS_BIGENDIAN
217
#if HAVE_BIGENDIAN
218 218
    case CODEC_ID_PCM_F64LE:
219 219
        ENCODE(int64_t, le64, samples, dst, n, 0, 0)
220 220
        break;
......
244 244
    case CODEC_ID_PCM_F32LE:
245 245
    case CODEC_ID_PCM_S32LE:
246 246
    case CODEC_ID_PCM_S16LE:
247
#endif /* WORDS_BIGENDIAN */
247
#endif /* HAVE_BIGENDIAN */
248 248
    case CODEC_ID_PCM_U8:
249 249
        memcpy(dst, samples, n*sample_size);
250 250
        dst += n*sample_size;
......
422 422
        }
423 423
        samples= (short*)dstu8;
424 424
        break;
425
#ifdef WORDS_BIGENDIAN
425
#if HAVE_BIGENDIAN
426 426
    case CODEC_ID_PCM_F64LE:
427 427
        DECODE(int64_t, le64, src, samples, n, 0, 0)
428 428
        break;
......
452 452
    case CODEC_ID_PCM_F32LE:
453 453
    case CODEC_ID_PCM_S32LE:
454 454
    case CODEC_ID_PCM_S16LE:
455
#endif /* WORDS_BIGENDIAN */
455
#endif /* HAVE_BIGENDIAN */
456 456
    case CODEC_ID_PCM_U8:
457 457
        memcpy(samples, src, n*sample_size);
458 458
        src += n*sample_size;

Also available in: Unified diff