aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-06-02 21:07:53 +0100
committerMans Rullgard <mans@mansr.com>2011-06-02 21:18:04 +0100
commit551dfdde70f912d0278730b28d480e32a49b1b5e (patch)
tree14642fe4d3714fbcd7c4bcd1e5841095f4499086
parentfefa67d536346b39973ab70b892d8ef27215b0b3 (diff)
downloadffmpeg-551dfdde70f912d0278730b28d480e32a49b1b5e.tar.gz
targa: fix big-endian build
-rw-r--r--libavcodec/targa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/targa.c b/libavcodec/targa.c
index 6a852a8528..e57fd8ba65 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++)