[FFmpeg-devel] Implement swscale_version()

Michael Niedermayer michaelni
Sat Aug 30 01:01:26 CEST 2008


On Fri, Aug 29, 2008 at 10:34:55PM +0100, Robert Swain wrote:
> 2008/8/29 Michael Niedermayer <michaelni at gmx.at>:
> > On Fri, Aug 29, 2008 at 09:56:41PM +0100, Robert Swain wrote:
> >> 2008/8/29 Stefano Sabatini <stefano.sabatini-lala at poste.it>:
> >> > On date Friday 2008-08-29 20:04:28 +0200, Diego Biurrun encoded:
> >> >> On Fri, Aug 29, 2008 at 07:59:50PM +0200, Stefano Sabatini wrote:
> >> >> >
> >> >> > Cannot apply to the MPlayer repository.
> >> >>
> >> >> Now you can.
> >> >
> >> > All applied, thanks.
> >>
> >> I realise I'm late to the show, but what's the point in this? Why
> >> can't someone just use LIBSWSCALE_VERSION_INT directly in their code
> >> rather than calling this function?
> >
> > Because that would provide the version of the header not the actual
> > code
> 
> It's not OK to assume they're identical? Or is the purpose of this to
> check that?

yes, people occasionally have several versions of a lib (like .so) laying
around and end up linking to the wrong. The compile time header version
does not help here

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080830/e37e5b79/attachment.pgp>



More information about the ffmpeg-devel mailing list