Re: [FFmpeg-devel] [PATCH] Add FFMPEG_VERSION into the binary libs

2014-12-19 Thread Michael Niedermayer
On Fri, Dec 19, 2014 at 06:22:30PM +0100, Nicolas George wrote: > Le nonidi 29 frimaire, an CCXXIII, Michael Niedermayer a écrit : > > +#include "libavutil/ffversion.h" > > +char *av_codec_ffversion = "FFmpeg version " FFMPEG_VERSION; > > This defines two variables: a pointer, and an anonymous con

Re: [FFmpeg-devel] [PATCH] Add FFMPEG_VERSION into the binary libs

2014-12-19 Thread Michael Niedermayer
On Fri, Dec 19, 2014 at 06:08:58PM +0100, Clément Bœsch wrote: > On Fri, Dec 19, 2014 at 06:05:43PM +0100, Michael Niedermayer wrote: > > This simplifies identifying from which revission a binary of a lib came from > > revision > > > > > Signed-off-by: Michael Niedermayer > > --- > > libavcode

Re: [FFmpeg-devel] [PATCH] Add FFMPEG_VERSION into the binary libs

2014-12-19 Thread Nicolas George
Le nonidi 29 frimaire, an CCXXIII, Michael Niedermayer a écrit : > +#include "libavutil/ffversion.h" > +char *av_codec_ffversion = "FFmpeg version " FFMPEG_VERSION; This defines two variables: a pointer, and an anonymous const array of chars containing the string. Only the second one is needed, so

Re: [FFmpeg-devel] [PATCH] Add FFMPEG_VERSION into the binary libs

2014-12-19 Thread Clément Bœsch
On Fri, Dec 19, 2014 at 06:05:43PM +0100, Michael Niedermayer wrote: > This simplifies identifying from which revission a binary of a lib came from revision > > Signed-off-by: Michael Niedermayer > --- > libavcodec/utils.c |3 +++ > libavformat/utils.c |3 +++ > 2 files changed, 6 ins

Re: [FFmpeg-devel] [PATCH] Add FFMPEG_VERSION into the binary libs

2014-12-19 Thread Pavel Koshevoy
On 12/19/14 10:05, Michael Niedermayer wrote: This simplifies identifying from which revission a binary of a lib came from Signed-off-by: Michael Niedermayer --- libavcodec/utils.c |3 +++ libavformat/utils.c |3 +++ 2 files changed, 6 insertions(+) diff --git a/libavcodec/utils.c