[MPlayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.113,1.114

Michael Niedermayer michaelni at gmx.at
Sun May 8 22:19:04 CEST 2005


Hi

On Sunday 08 May 2005 20:41, Reimar Döffinger wrote:
> Hi,
>
> On Sun, May 08, 2005 at 02:56:49PM +0200, Michael Niedermayer wrote:
> > On Sunday 08 May 2005 12:31, Reimar Döffinger CVS wrote:
> > > @@ -614,7 +614,8 @@
> > >      {
> > >  	case IMGFMT_YV12:
> > >  	    // HACK, mjpeg accepts PIX_FMT_YUV420P only with vstrict=-1
> > > -	    if (strcasecmp(lavc_param_vcodec, "mjpeg") == 0)
> > > +	    if (strcasecmp(lavc_param_vcodec, "mjpeg") == 0 ||
> > > +	        strcasecmp(lavc_param_vcodec, "ljpeg") == 0)
> > >  	      lavc_venc_context->pix_fmt = PIX_FMT_YUVJ420P;
> >
> > reverse this! and the 1.108 -> 1.109 change too
> > the correct way to store IMGFMT_YV12 in jpeg is to set strict=-1
> > the difference is that your (stupid) hack leads to wrong colors on all
> > encoded mjpeg&ljpeg as libavcodec wont know the correct colorspace and so
> > cant store the correct colorspace in the jpeg
>
> Well, but the problem I see is that strict=-1 might also mean that the
> encoded file might not be playable in later versions. I found it
> unacceptable to set that automatically (actually I'd prefer people to
> have an alternative to specifying that anyway).

ok, done


> Also colors didn't really look wrong to me (though my eyes (and esp. LCD)
> aren't that good).

well, tell this to the first user who notices that his lossless jpeg encodings 
look the same but arent


> Feel free to reverse it, but I can't see any solution that would be much
> better - except actually supporting YUVJ (for which I don't even know
> the exact specification).

as rich already said supporting YUVJ wont help at all especially not with 
lossess jpeg

anyway, ill reverse this if you dont

[...]

-- 
Michael




More information about the MPlayer-cvslog mailing list