summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 2d47cb9c88..24c3ba4e36 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -639,14 +639,6 @@ static void release_buffer_hwdec(AVCodecContext *avctx, AVFrame *pic)
pic->data[i] = NULL;
}
-static av_unused void swap_palette(void *pal)
-{
- int i;
- uint32_t *p = pal;
- for (i = 0; i < AVPALETTE_COUNT; i++)
- p[i] = le2me_32(p[i]);
-}
-
static void fb_ref(void *b)
{
mp_buffer_ref(b);
@@ -740,12 +732,6 @@ static int decode(struct sh_video *sh, struct demux_packet *packet, void *data,
assert(mpi->imgfmt == pixfmt2imgfmt(avctx->pix_fmt));
-#if BYTE_ORDER == BIG_ENDIAN
- // FIXME: this might cause problems for buffers with FF_BUFFER_HINTS_PRESERVE
- if (mpi->bpp == 8)
- swap_palette(mpi->planes[1]);
-#endif
-
mpi->colorspace = sh->colorspace;
mpi->levels = sh->color_range;
mpi->qscale = pic->qscale_table;