提交 4fb3e1a6 编写于 作者: M Michael Niedermayer

avcodec/pnmdec: fix unaligned read

Fixes fate-lavf-pam on alpha
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册