On Fri, Jun 03, 2016 at 03:51:29PM -0400, Vittorio Giovara wrote:
> --- /dev/null
> +++ b/libavcodec/truemotion2rt.c
> @@ -0,0 +1,227 @@
> +/*
> + * Duck TrueMotion 2.0 Real Time Decoder

decoder

> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
> +
> +#include "libavutil/imgutils.h"
> +#include "libavutil/internal.h"
> +#include "libavutil/intreadwrite.h"
> +#include "libavutil/mem.h"
> +
> +#include "avcodec.h"
> +#define BITSTREAM_READER_LE
> +#include "get_bits.h"
> +#include "internal.h"

Move the define before all libavcodec #includes; it's bound to get
overridden by accident otherwise.

> +/* Returns the number of bytes consumed from the bytestream. Returns -1 if
> + * there was an error while decoding the header */
> +static int truemotion2rt_decode_header(AVCodecContext *avctx)

This does not return -1.

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

Reply via email to