[FFmpeg-devel] [PATCH] Implement sws_printVec2()

Gwenole Beauchesne gbeauchesne
Sun Feb 15 12:43:55 CET 2009


Le 14 f?vr. 09 ? 09:26, Stefano Sabatini a ?crit :

>>>> It's standard practice in FFmpeg to rename a function with a 2
>>>> suffix,
>>>> when the original function has problems API-wise, and I don't think
>>>> it
>>>> is especially ugly in this case.
>>> It's fairly standard practise also outside FFmpeg in similar
>>> situations.
>> Unless versioned symbols are supported. Though, by essence, this is
>> non-portable. AFAIK, some ELF targets support that (Linux, Solaris).
> I know (almost) nothing about versioned symbols.
> Please could you explain how such a symbol creation (sws_printVec +
> sws_printVec2) could affect portability?

Versioned symbols make it possible keep a unique name for both  
implementations. That's a non-portable (GNU) extension.
e.g. a sws_printVec@ and a sws_printVec at LIBAVCODEC_0_50_whatever

sws_printVec + sws_printVec2 is not what I call versioned symbols,  
which had to be viewed at the linker level. ;-)


More information about the ffmpeg-devel mailing list