mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
brender: move declaration out of for() to make old compilers happy.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
492a5f835c
commit
305a935968
@ -162,6 +162,7 @@ static int brpix_decode_frame(AVCodecContext *avctx,
|
|||||||
(chunk_type == 0x3 || chunk_type == 0x3d)) {
|
(chunk_type == 0x3 || chunk_type == 0x3d)) {
|
||||||
BRPixHeader palhdr;
|
BRPixHeader palhdr;
|
||||||
uint32_t *pal_out = (uint32_t *)s->frame.data[1];
|
uint32_t *pal_out = (uint32_t *)s->frame.data[1];
|
||||||
|
int i;
|
||||||
|
|
||||||
ret = brpix_decode_header(&palhdr, &gb);
|
ret = brpix_decode_header(&palhdr, &gb);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
@ -182,7 +183,7 @@ static int brpix_decode_frame(AVCodecContext *avctx,
|
|||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
// convert 0RGB to machine endian format (ARGB32)
|
// convert 0RGB to machine endian format (ARGB32)
|
||||||
for (int i = 0; i < 256; ++i) {
|
for (i = 0; i < 256; ++i) {
|
||||||
bytestream2_skipu(&gb, 1);
|
bytestream2_skipu(&gb, 1);
|
||||||
*pal_out++ = (0xFFU << 24) | bytestream2_get_be24u(&gb);
|
*pal_out++ = (0xFFU << 24) | bytestream2_get_be24u(&gb);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user