[Ffmpeg-devel] [PATCH 1/2] Enable usage of AVOption default value
Aurelien Jacobs
aurel
Sat Sep 9 00:21:11 CEST 2006
On Fri, 8 Sep 2006 16:25:25 +0200
Panagiotis Issaris <takis.issaris at uhasselt.be> wrote:
> Hi,
>
> Op vrijdag 8 september 2006 15:22, schreef Panagiotis Issaris:
> > The attached patch makes AVOptions default value field work.
> >
> > If this patch is refined a few times, and deemed correct,
> > I will reuse it for libavcodec by turning it into a macro
> > and resend an modified patch.
>
> The attached patch makes AVOptions default values get set
> for both libavformat and libavcodec. The AVOptions flag
> behavior should be fixed. Regression tests succeed.
>
> [...]
> +#define AV_OPTION_SET_DEFAULTS(s) \
> +{ \
> + AVOption *opt = NULL; \
Any reason why you implemented this as a macro instead of a function ?
Aurel
More information about the ffmpeg-devel
mailing list