static void update_md5_sum(FlacEncodeContext *s, const int16_t *samples)

{

#if HAVE_BIGENDIAN

    int i;

    for (i = 0; i < s->frame.blocksize * s->channels; i++) {

        int16_t smp = av_le2ne16(samples[i]);

        av_md5_update(s->md5ctx, (uint8_t *)&smp, 2);

    }

#else

    av_md5_update(s->md5ctx, (const uint8_t *)samples, s->frame.blocksize*s->channels*2);

#endif

}

static void update_md5_sum(FlacEncodeContext *s, const int16_t *samples)

{

#if HAVE_BIGENDIAN

    int i;

    for (i = 0; i < s->frame.blocksize * s->channels; i++) {

        int16_t smp = av_le2ne16(samples[i]);

        av_md5_update(s->md5ctx, (uint8_t *)&smp, 2);

    }

#else

    av_md5_update(s->md5ctx, (const uint8_t *)samples, s->frame.blocksize*s->channels*2);

#endif

}

static void FUNC_0(FlacEncodeContext *VAR_0, const int16_t *VAR_1)

{

#if HAVE_BIGENDIAN

    int i;

    for (i = 0; i < VAR_0->frame.blocksize * VAR_0->channels; i++) {

        int16_t smp = av_le2ne16(VAR_1[i]);

        av_md5_update(VAR_0->md5ctx, (uint8_t *)&smp, 2);

    }

#else

    av_md5_update(VAR_0->md5ctx, (const uint8_t *)VAR_1, VAR_0->frame.blocksize*VAR_0->channels*2);

#endif

}

static void FUNC_0(FlacEncodeContext *VAR_0, const int16_t *VAR_1)
{ #if HAVE_BIGENDIAN
int i; for (i = 0; i < VAR_0->frame.blocksize * VAR_0->channels; i++) { int16_t smp = av_le2ne16(VAR_1[i]); av_md5_update(VAR_0->md5ctx, (uint8_t *)&smp, 2); } #else
av_md5_update(VAR_0->md5ctx, (const uint8_t *)VAR_1, VAR_0->frame.blocksize*VAR_0->channels*2); #endif
}