Commit 4fb3e1a6 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/pnmdec: fix unaligned read

Fixes fate-lavf-pam on alpha
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 62d07bb3
......@@ -31,7 +31,7 @@ static void samplecpy(uint8_t *dst, const uint8_t *src, int n, int maxval)
} else {
int i;
for (i=0; i<n/2; i++) {
((uint16_t *)dst)[i] = av_be2ne16(((uint16_t *)src)[i]);
((uint16_t *)dst)[i] = AV_RB16(src+2*i);
}
}
}
......
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