1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-01 08:54:48 +02: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:
Michael Niedermayer 2013-09-02 12:32:32 +02:00
parent 62d07bb321
commit 4fb3e1a652

View File

@ -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);
}
}
}