[FFmpeg-devel] [PATCH 1/2] avfilter: Dry run mode for list merging

Nicolas George nicolas.george at normalesup.org
Mon Jul 22 12:16:10 CEST 2013


Le quartidi 4 thermidor, an CCXXI, Michael Niedermayer a écrit :
>  AVFilterFormats *ff_merge_formats(AVFilterFormats *a, AVFilterFormats *b,
> -                                  enum AVMediaType type)
> +                                  enum AVMediaType type, int dry_run)
>  {

Wouldn't it be simpler to have

ff_try_merge_formats(a, b, type);

that will allocate a copy of a and b with dummy back-references and pass it
to ff_merge_formats?

For reference, the problem with the channel layouts is that the algorithm
currently overwrites its inputs. It does so only when success is certain
(exccept for OOM), but that will not do for dry-run.

Regards,

-- 
  Nicolas George
-------------- 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/20130722/b3d6b958/attachment.asc>


More information about the ffmpeg-devel mailing list