sws: fix non native endian 9-15 bit input with 16bit out

pull/2/head
Michael Niedermayer 14 years ago
parent ca78fa24b7
commit 08b57574c6
  1. 4
      libswscale/swscale.c

@ -2902,6 +2902,10 @@ static av_cold void sws_init_swScale_c(SwsContext *c)
}
}
} else {
if(c->hScale16 == hScale16NX_c && !isAnyRGB(c->srcFormat)){
c->chrToYV12 = bswap16UV_c;
c->lumToYV12 = bswap16Y_c;
}
c->hScale16 = NULL;
c->hScale = hScale16_c;
c->scale19To15Fw = scale19To15Fw_c;

Loading…
Cancel
Save