changeset 35598:f5f932450bce

IMGFMT_RGB8 is not a palettised image format.
author cehoyos
date Tue, 18 Dec 2012 00:30:00 +0000
parents 6063e2930092
children 415e59838dc9
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Mon Dec 17 01:34:58 2012 +0000
+++ b/libmpcodecs/vf_scale.c	Tue Dec 18 00:30:00 2012 +0000
@@ -220,7 +220,7 @@
         return 0;
     }
     sfmt = imgfmt2pixfmt(outfmt);
-    if (outfmt == IMGFMT_RGB8 || outfmt == IMGFMT_BGR8) sfmt = PIX_FMT_PAL8;
+    if (outfmt == IMGFMT_BGR8) sfmt = PIX_FMT_PAL8;
     dfmt = imgfmt2pixfmt(best);
 
     vo_flags=vf->next->query_format(vf->next,best);