mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
rawdec: fix "warning: assignment from incompatible pointer type"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
225efccefc
commit
79bf1f0ad0
@ -208,7 +208,7 @@ static int raw_decode(AVCodecContext *avctx,
|
|||||||
return res;
|
return res;
|
||||||
if((avctx->pix_fmt==PIX_FMT_PAL8 && buf_size < context->length) ||
|
if((avctx->pix_fmt==PIX_FMT_PAL8 && buf_size < context->length) ||
|
||||||
(av_pix_fmt_descriptors[avctx->pix_fmt].flags & PIX_FMT_PSEUDOPAL)) {
|
(av_pix_fmt_descriptors[avctx->pix_fmt].flags & PIX_FMT_PSEUDOPAL)) {
|
||||||
frame->data[1]= context->palette;
|
frame->data[1]= (uint8_t*)context->palette;
|
||||||
}
|
}
|
||||||
if (avctx->pix_fmt == PIX_FMT_PAL8) {
|
if (avctx->pix_fmt == PIX_FMT_PAL8) {
|
||||||
const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, NULL);
|
const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user