[FFmpeg-devel] [PATCH] avcodec_copy_context()

Måns Rullgård mans
Tue Mar 30 17:35:17 CEST 2010


Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:

> 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.

@return

The war rages on, but this particular battle you cannot win.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list