mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-12-12 13:37:37 +00:00
avidec: Do not special case palette on big-endian
This simplifies the code a bit, does not change output data in any way.
This commit is contained in:
parent
310c55f179
commit
bad4aad403
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user