[FFmpeg-devel] [PATCH] avcodec_copy_context()

Stefano Sabatini stefano.sabatini-lala
Tue Mar 30 17:30:49 CEST 2010


On date Tuesday 2010-03-30 10:22:26 -0400, Ronald S. Bultje encoded:
> Hi,
> 
> as per $subj. Subsequent patches will use this function.
> 
> Ronald

> Index: ffmpeg-svn/libavcodec/avcodec.h
> ===================================================================
> --- ffmpeg-svn.orig/libavcodec/avcodec.h	2010-03-29 13:37:31.000000000 -0400
> +++ ffmpeg-svn/libavcodec/avcodec.h	2010-03-29 13:37:49.000000000 -0400
> @@ -3256,6 +3256,19 @@
>  AVCodecContext *avcodec_alloc_context2(enum CodecType);
>  /**
> + * Copy the settings of the source AVCodecContext into the destination

Nit: "Copies" (but I won't fight the Third Person Holy War so do as
you prefer).

> + * AVCodecContext. The resulting destination codec context will be
> + * unopened, i.e. you are required to call avcodec_open() before you
> + * can use this AVCodecContext to decode/encode video/audio data.
> + *
> + * @param dest target codec context, should be initialized with
> + *             #avcodec_alloc_context(), but otherwise uninitialized
> + * @param src source codec context
> + * @returns AVERROR() on error (e.g. memory allocation error), 0 on success.

The final "." is not required.

Regards.
-- 
FFmpeg = Frightening and Foolish Murdering Puritan Extensive Gnome



More information about the ffmpeg-devel mailing list