You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
targa: fix big-endian build
This commit is contained in:
@@ -210,6 +210,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
CHECK_BUFFER_SIZE(buf, buf_end, img_size, "image data");
|
CHECK_BUFFER_SIZE(buf, buf_end, img_size, "image data");
|
||||||
for(y = 0; y < s->height; y++){
|
for(y = 0; y < s->height; y++){
|
||||||
#if HAVE_BIGENDIAN
|
#if HAVE_BIGENDIAN
|
||||||
|
int x;
|
||||||
if((s->bpp + 1) >> 3 == 2){
|
if((s->bpp + 1) >> 3 == 2){
|
||||||
uint16_t *dst16 = (uint16_t*)dst;
|
uint16_t *dst16 = (uint16_t*)dst;
|
||||||
for(x = 0; x < s->width; x++)
|
for(x = 0; x < s->width; x++)
|
||||||
|
Reference in New Issue
Block a user