[libav-devel] [PATCH 1/3] avcodec: clarify documentation of CODEC_CAP_DELAY

Anton Khirnov anton at khirnov.net
Sun Oct 16 09:48:24 CEST 2011


On Sun, 25 Sep 2011 17:10:37 -0400, Justin Ruggles <justin.ruggles at gmail.com> wrote:
> ---
>  libavcodec/avcodec.h |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index a7defa0..cadbcff 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -664,8 +664,10 @@ typedef struct RcOverride{
>  /* Codec can export data for HW decoding (XvMC). */
>  #define CODEC_CAP_HWACCEL         0x0010
>  /**
> - * Codec has a nonzero delay and needs to be fed with NULL at the end to get the delayed data.
> - * If this is not set, the codec is guaranteed to never be fed with NULL data.
> + * Codec has a nonzero delay and needs to be fed with avpkt->data=NULL,
> + * avpkt->size=0 at the end to get the delayed data until the decoder no longer
> + * returns frames. If this is not set, the codec is guaranteed to never be fed
> + * with NULL data.
>   */
>  #define CODEC_CAP_DELAY           0x0020
>  /**
> -- 
> 1.7.1
> 

Looks ok.

-- 
Anton Khirnov


More information about the libav-devel mailing list