[FFmpeg-devel] Implement swscale_version()

Diego Biurrun diego
Fri Aug 29 23:41:33 CEST 2008


On Fri, Aug 29, 2008 at 10:35:43PM +0100, Robert Swain wrote:
> 2008/8/29 Diego Biurrun <diego at biurrun.de>:
> > 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?
> >
> > LIBSWSCALE_VERSION_INT is not part of the API.
> 
> I see LIBSWSCALE_VERSION_INT defined in swscale.h which is the same
> place this new function is declared.

I was being unclear.  swscale_version(), avcodec_version(), etc. are
functions offered by the libs themselves.  The library version and the
header version do not need to match.

Diego




More information about the ffmpeg-devel mailing list