No paletted pixel formats are supported by the decoder.
Unified · Split
| @@ -982,10 +982,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *rframe, · 981 unmodified lines | ||
| 982 | 982 | (sc->slice_y >> sv) + ((sc->slice_x >> sh) << pixshift); |
| 983 | 983 | |
| 984 | 984 | } |
| 985 | − if (desc->flags & AV_PIX_FMT_FLAG_PAL) { | |
| 986 | − dst[1] = p->data[1]; | |
| 987 | − src[1] = f->last_picture.f->data[1]; | |
| 988 | − } | |
| 985 | + | |
| 989 | 986 | av_image_copy(dst, p->linesize, src, |
| 990 | 987 | f->last_picture.f->linesize, |
| 991 | 988 | avctx->pix_fmt, |