mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avcodec/pnmdec: fix unaligned read
Fixes fate-lavf-pam on alpha Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
62d07bb321
commit
4fb3e1a652
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user