OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
310c55f
)
avidec: Do not special case palette on big-endian
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sun, 25 Sep 2016 00:25:44 +0000
(20:25 -0400)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sun, 2 Oct 2016 19:42:03 +0000
(15:42 -0400)
This simplifies the code a bit, does not change output data in any way.
libavformat/avidec.c
patch
|
blob
|
history
diff --git
a/libavformat/avidec.c
b/libavformat/avidec.c
index
ddc7c2b
..
b2457d5
100644
(file)
--- a/
libavformat/avidec.c
+++ b/
libavformat/avidec.c
@@
-652,12
+652,8
@@
static int avi_read_header(AVFormatContext *s)
pal_size = FFMIN(pal_size, st->codecpar->extradata_size);
pal_src = st->codecpar->extradata +
st->codecpar->extradata_size - pal_size;
-#if HAVE_BIGENDIAN
for (i = 0; i < pal_size / 4; i++)
- ast->pal[i] = av_bswap32(((uint32_t *)pal_src)[i]);
-#else
- memcpy(ast->pal, pal_src, pal_size);
-#endif
+ ast->pal[i] = AV_RL32(pal_src + 4 * i);
ast->has_pal = 1;
}