[MPlayer-users] [BUG] swscaler conversion of yv12 to nv12 broken

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Jul 30 15:52:47 CEST 2009


On Thu, Jul 30, 2009 at 02:58:58PM +0200, Guennadi Liakhovetski wrote:
> On Thu, 30 Jul 2009, Guennadi Liakhovetski wrote:
> > I'm using mplayer on a SuperH platform with the sh_veu vidix driver, which 
> > takes nv12 as an input format. It used to work at least with a version 
> > from August 2008, a recent (21.07) SVN snapshot doesn't work any more. 
> > Doesn't work means, that with the clean SVN version the image appears 
> > black-and-white on the LCD.
> 
> Ok, problem fixed. Or more precisely, it's cause found and a crude 
> solution produced, now it's up to you to produce a correct one. So, the 
> cause is, that sws_getContext() is now picking up a wrong converter for 
> the yv12 -> nv12 case. It first gets the right one - 
> PlanarToNV12Wrapper(), but then it goes on and overwrites its first choice 
> with planarCopy(). The reason, I think, is too broad criteria for the 
> latter one. I narrowed them down with

Would you mind posting this on FFmpeg-devel? libswscale belongs to FFmpeg nowadays.
Thanks a lot for your efforts.


More information about the MPlayer-users mailing list