[FFmpeg-cvslog] targa: fix big-endian build
Mans Rullgard
git at videolan.org
Fri Jun 3 05:24:56 CEST 2011
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Jun 2 21:07:53 2011 +0100| [551dfdde70f912d0278730b28d480e32a49b1b5e] | committer: Mans Rullgard
targa: fix big-endian build
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=551dfdde70f912d0278730b28d480e32a49b1b5e
---
libavcodec/targa.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/targa.c b/libavcodec/targa.c
index 6a852a8..e57fd8b 100644
--- a/libavcodec/targa.c
+++ b/libavcodec/targa.c
@@ -210,6 +210,7 @@ static int decode_frame(AVCodecContext *avctx,
CHECK_BUFFER_SIZE(buf, buf_end, img_size, "image data");
for(y = 0; y < s->height; y++){
#if HAVE_BIGENDIAN
+ int x;
if((s->bpp + 1) >> 3 == 2){
uint16_t *dst16 = (uint16_t*)dst;
for(x = 0; x < s->width; x++)
More information about the ffmpeg-cvslog
mailing list