[FFmpeg-devel] [PATCH 2/3] ffmpeg_opt/get_preset_file_2():?de-avconv-ize

Michael Niedermayer michaelni at gmx.at
Tue Feb 25 00:24:08 CET 2014


On Mon, Feb 24, 2014 at 02:20:39AM +0000, Timothy Gu wrote:
> Updated patch below:
> 
> ----
> 
> From 2dd0479ea6bf35242e580cf86bbbd2e3f07c9165 Mon Sep 17 00:00:00 2001
> From: Timothy Gu <timothygu99 at gmail.com>
> Date: Thu, 6 Feb 2014 14:13:06 -0800
> Subject: [PATCH 2/3] ffmpeg_opt/get_preset_file_2(): de-avconv-ize
> 
> Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
> ---
>  ffmpeg_opt.c | 20 ++++++++++++++++----
>  1 file changed, 16 insertions(+), 4 deletions(-)
> 
> diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
> index 6a0ba4f..96bba04 100644
> --- a/ffmpeg_opt.c
> +++ b/ffmpeg_opt.c
> @@ -979,22 +979,34 @@ static int get_preset_file_2(const char *preset_name, 
> const char *codec_name, AV
>  {
>      int i, ret = -1;
>      char filename[1000];
> -    const char *base[3] = { getenv("AVCONV_DATADIR"),
> +    const char *base[4] = { getenv("FFMPEG_DATADIR"),
> +                            getenv("AVCONV_DATADIR"),
>                              getenv("HOME"),
> -                            AVCONV_DATADIR,
> +                            FFMPEG_DATADIR,
>                              };
>  
>      for (i = 0; i < FF_ARRAY_ELEMS(base) && ret < 0; i++) {
>          if (!base[i])
>              continue;
>          if (codec_name) {
> +            snprintf(filename, sizeof(filename), "%s%s/%s-%s.ffpreset", 
> base[i],
> +                     i != 2 ? "" : "/.ffmpeg", codec_name, preset_name);

the patch looks line wraped but doesnt apply even after running it
through tools/unwrap-diff


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140225/115af296/attachment.asc>


More information about the ffmpeg-devel mailing list