comparison libmpcodecs/vf_scale.c @ 35598:f5f932450bce

IMGFMT_RGB8 is not a palettised image format.
author cehoyos
date Tue, 18 Dec 2012 00:30:00 +0000
parents df138f843ebc
children 4ba6b8d3197e
comparison
equal deleted inserted replaced
35597:6063e2930092 35598:f5f932450bce
218 if(!best){ 218 if(!best){
219 mp_msg(MSGT_VFILTER,MSGL_WARN,"SwScale: no supported outfmt found :(\n"); 219 mp_msg(MSGT_VFILTER,MSGL_WARN,"SwScale: no supported outfmt found :(\n");
220 return 0; 220 return 0;
221 } 221 }
222 sfmt = imgfmt2pixfmt(outfmt); 222 sfmt = imgfmt2pixfmt(outfmt);
223 if (outfmt == IMGFMT_RGB8 || outfmt == IMGFMT_BGR8) sfmt = PIX_FMT_PAL8; 223 if (outfmt == IMGFMT_BGR8) sfmt = PIX_FMT_PAL8;
224 dfmt = imgfmt2pixfmt(best); 224 dfmt = imgfmt2pixfmt(best);
225 225
226 vo_flags=vf->next->query_format(vf->next,best); 226 vo_flags=vf->next->query_format(vf->next,best);
227 227
228 // scaling to dwidth*d_height, if all these TRUE: 228 // scaling to dwidth*d_height, if all these TRUE: