[FFmpeg-devel] [PATCH 1/7] lavc: move bitstream filter args to the bsf ctx

Michael Niedermayer michael at niedermayer.cc
Sat Oct 10 04:28:08 CEST 2015


On Thu, Oct 08, 2015 at 03:07:35PM -0500, Rodger Combs wrote:
> ---
>  libavcodec/avcodec.h          | 1 +
>  libavcodec/bitstream_filter.c | 5 +++--
>  2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index ff70d25..ce42e57 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -5026,6 +5026,7 @@ typedef struct AVBitStreamFilterContext {
>      struct AVBitStreamFilter *filter;
>      AVCodecParserContext *parser;
>      struct AVBitStreamFilterContext *next;
> +    char *args;

as avcodec.h is a public header, this field should be documented
minimally the documentation should list if the lib user is allowed
to read/write it

except that the patch LGTM

[,..]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151010/a21c2a40/attachment.sig>


More information about the ffmpeg-devel mailing list