[Ffmpeg-devel] swscale and palette ... what am I??? missing?

Michael Niedermayer michaelni
Fri Mar 2 14:32:24 CET 2007


Hi

On Fri, Mar 02, 2007 at 01:13:25PM +0100, Karl H. Beckers wrote:
[...]
> well, rather sure, though I may have missed smth with the way the function names are transformed to find the right implementation for sws_scale.
> The way I understand this is the RENAME(swScale) stuff I was quoting is the implementation that is called directly from my call to sws_scale with the params I pass there. Therefore src[] is passed as a pointer to AVFrame.data[]. Then, if you modify src[1] you are actually modifying the pointer stored in the original AVFrame.data[1]. Anything else would involve creating src as a new 4-element array of some pointer type and copying the elements over from the input. That I cannot find.
> Also, simply fixing the pointer in AVFrame.data[1] before each call to sws_scale fixes the issue for me.

fixed

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

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- 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/ffmpeg-devel/attachments/20070302/97a41d67/attachment.pgp>



More information about the ffmpeg-devel mailing list