mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-13 21:26:33 +02:00
const
Originally committed as revision 11782 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
67d9ca0c00
commit
521c38f1ef
@ -38,14 +38,16 @@ static int txd_init(AVCodecContext *avctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
|
static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
|
||||||
uint8_t *buf, int buf_size) {
|
const uint8_t *buf, int buf_size) {
|
||||||
TXDContext * const s = avctx->priv_data;
|
TXDContext * const s = avctx->priv_data;
|
||||||
AVFrame *picture = data;
|
AVFrame *picture = data;
|
||||||
AVFrame * const p = &s->picture;
|
AVFrame * const p = &s->picture;
|
||||||
unsigned int version, w, h, d3d_format, depth, stride, mipmap_count, flags;
|
unsigned int version, w, h, d3d_format, depth, stride, mipmap_count, flags;
|
||||||
unsigned int y, v;
|
unsigned int y, v;
|
||||||
uint8_t *ptr, *cur = buf;
|
uint8_t *ptr;
|
||||||
uint32_t *palette = (uint32_t *)(cur + 88), *pal;
|
const uint8_t *cur = buf;
|
||||||
|
const uint32_t *palette = (const uint32_t *)(cur + 88);
|
||||||
|
uint32_t *pal;
|
||||||
|
|
||||||
version = AV_RL32(cur);
|
version = AV_RL32(cur);
|
||||||
d3d_format = AV_RL32(cur+76);
|
d3d_format = AV_RL32(cur+76);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user