[MPlayer-dev-eng] [RFC] swscaler: Don't try to use bgr8torgbnn

Michael Niedermayer michaelni at gmx.at
Tue Apr 3 09:36:30 CEST 2007


Hi

On Tue, Apr 03, 2007 at 03:59:14AM +0200, Carl Eugen Hoyos wrote:
> Hi Michael
> 
> On 2007-04-03 01:17, Michael Niedermayer wrote:
> > > I tried to convert the first frame of
> > > http://samples.mplayerhq.hu/V-codecs/8BPS-PlanarRGB/full9ironswing.mov
> > > into pnm (or png or jpeg) using this command:
> > > mplayer full9ironswing.mov -frames 1 -vo pnm
> > > 
> > > mplayer crashes with a "swScaler: internal error" message because no
> > > scalers for bgr8 are defined.
> > > 
> > > Attached patch is a naive try to fix the crash and allow the conversion,
> > > please comment, Carl Eugen
> > 
> > i think the check is insufficient there are further formats not supported
> > by rgb2rgbWrapper which would pass this ...
> 
> I tried to add all cases from isRGB and isBGR that are not supported.

looks ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070403/db0dfa70/attachment.pgp>


More information about the MPlayer-dev-eng mailing list