[FFmpeg-devel] [PATCH] libswscale: Fix the anonymous memory mapping in sws_GetContext for NetBSD when MMX2 optimisations are enabled.

Michael Niedermayer michaelni
Thu Aug 19 11:34:02 CEST 2010

On Thu, Aug 19, 2010 at 08:19:24AM +0200, Grant Carver wrote:
> Hi there
> Creation of a swscale context was failing on NetBSD due to the anonymous
> mmap call failing. It seems that if the MAP_ANONYMOUS flag is specified some
> BSD flavours require the file descriptor to be -1, whilst on linux this
> parameter is just ignored. 

where is this documented or is it a bug?

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100819/0449fab8/attachment.pgp>

More information about the ffmpeg-devel mailing list