OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fefa67d
)
targa: fix big-endian build
author
Mans Rullgard
<mans@mansr.com>
Thu, 2 Jun 2011 20:07:53 +0000
(21:07 +0100)
committer
Mans Rullgard
<mans@mansr.com>
Thu, 2 Jun 2011 20:18:04 +0000
(21:18 +0100)
libavcodec/targa.c
patch
|
blob
|
history
diff --git
a/libavcodec/targa.c
b/libavcodec/targa.c
index
6a852a8
..
e57fd8b
100644
(file)
--- 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++)