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 | (sc->slice_y >> sv) + ((sc->slice_x >> sh) << pixshift); | 982 | (sc->slice_y >> sv) + ((sc->slice_x >> sh) << pixshift); |
| 983 | 983 | ||
| 984 | } | 984 | } |
| 985 | if (desc->flags & AV_PIX_FMT_FLAG_PAL) { | 985 | |
| 986 | dst[1] = p->data[1]; | ||
| 987 | src[1] = f->last_picture.f->data[1]; | ||
| 988 | } | ||
| 989 | av_image_copy(dst, p->linesize, src, | 986 | av_image_copy(dst, p->linesize, src, |
| 990 | f->last_picture.f->linesize, | 987 | f->last_picture.f->linesize, |
| 991 | avctx->pix_fmt, | 988 | avctx->pix_fmt, |