Browse Source

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

tags/n0.9
Michael Niedermayer 14 years ago
parent
commit
08b57574c6
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libswscale/swscale.c

+ 4
- 0
libswscale/swscale.c View File

@@ -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