On Sun, 24 Nov 2013 09:49:47 -0800, John Stebbins <[email protected]> 
wrote:
> ---
>  libavcodec/avcodec.h   |  5 ++++
>  libavcodec/mpeg12dec.c | 64 
> ++++++++++++++++++++++++++++++++++++++++++++++++++
>  libavutil/frame.h      |  4 ++++
>  3 files changed, 73 insertions(+)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 4ce6d61..9e7d968 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -845,6 +845,11 @@ typedef struct AVPanScan{
>      int16_t position[3][2];
>  }AVPanScan;
>  
> +typedef struct AVClosedCaption {
> +    int count;
> +    uint8_t data[1];
> +} AVClosedCaption;

First, those two fields should be documented. Perhaps it's obvious to you what
they mean, but it's not so obvious to me. E.g. my first assumption would be that
count is the size of data in bytes, but looking at the code it is not so.

Second, this is apparrently a dump of some specific wire format, right? Then it
should be documented which one it is and the struct and the side data type
should have more specific names, so we can add other CC formats later.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to