Commit 5dfcb4f7 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/flacenc: Simplify md5 calculation code by using AV_WL24()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 710abaf2
......@@ -1278,9 +1278,7 @@ static int update_md5_sum(FlacEncodeContext *s, const void *samples)
for (i = 0; i < s->frame.blocksize * s->channels; i++) {
int32_t v = samples0[i] >> 8;
*tmp++ = (v ) & 0xFF;
*tmp++ = (v >> 8) & 0xFF;
*tmp++ = (v >> 16) & 0xFF;
AV_WL24(tmp + 3*i, v);
}
buf = s->md5_buffer;
}
......
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