[FFmpeg-devel] [PATCH] iff/deep: fix rle32 on big-endian

Peter Ross pross at xvid.org
Tue Jan 29 01:20:21 CET 2013


On Mon, Jan 28, 2013 at 05:53:06PM +0100, Piotr Bandurski wrote:
> diff --git a/libavcodec/iff.c b/libavcodec/iff.c
> index c4672b8..d37b771 100644
> --- a/libavcodec/iff.c
> +++ b/libavcodec/iff.c
> @@ -576,7 +576,7 @@ static void decode_deep_rle32(uint8_t *dst, const uint8_t *src, int src_size, in
>              }
>          } else {
>              int size = -opcode + 1;
> -            uint32_t pixel = AV_RL32(src);
> +            uint32_t pixel = AV_RN32(src);
>              for (i = 0; i < size; i++) {
>                  *(uint32_t *)(dst + y*linesize + x * 4) = pixel;
>                  x += 1;

Applied.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130129/61548c02/attachment.asc>


More information about the ffmpeg-devel mailing list