[FFmpeg-devel] [PATCH] In libx264 wrapper, correctly support 2pass log filename option.

Stefano Sabatini stefano.sabatini-lala at poste.it
Fri Apr 22 01:38:34 CEST 2011


On date Tuesday 2011-04-19 16:36:55 -0700, Baptiste Coudurier encoded:
> ---
>  ffmpeg.c             |   12 +++++++++---
>  libavcodec/libx264.c |   14 ++++++++++++++
>  2 files changed, 23 insertions(+), 3 deletions(-)
[...]
> diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
> index 29c535c..5f6ee44 100644
> --- a/libavcodec/libx264.c
> +++ b/libavcodec/libx264.c
> @@ -39,6 +39,7 @@ typedef struct X264Context {
>      const char *tune;
>      const char *profile;
>      const char *level;
> +    const char *stats;
>      int fastfirstpass;
>  } X264Context;
>  
> @@ -173,6 +174,15 @@ static av_cold int X264_close(AVCodecContext *avctx)
>          }                                                               \
>      } while (0);                                                        \
>  
> +#define OPT_STR(opt, param)                                             \
> +    do {                                                                \
> +        if (param && x264_param_parse(&x4->params, opt, param) < 0) {   \
> +            av_log(avctx, AV_LOG_ERROR,                                 \
> +                   "bad value for '%s': '%s'\n", opt, param);           \

> +            return -1;                                                  \

AVERROR(EINVAL)

[...]
-- 
FFmpeg = Fierce & Freak Magic Philosofic Enlightening Gorilla


More information about the ffmpeg-devel mailing list