[FFmpeg-devel] [PATCH 3/5] avcodec/utvideodec: enable unchecked bitreader

Kieran Kunhya kierank at obe.tv
Wed Jun 28 00:07:29 EEST 2017


On Tue, 27 Jun 2017 at 20:48 Michael Niedermayer <michael at niedermayer.cc>
wrote:

> inner reader loop becomes 16% faster
>
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/utvideodec.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c
> index 411df47730..1418cde543 100644
> --- a/libavcodec/utvideodec.c
> +++ b/libavcodec/utvideodec.c
> @@ -27,6 +27,8 @@
>  #include <inttypes.h>
>  #include <stdlib.h>
>
> +#define UNCHECKED_BITSTREAM_READER 1
> +
>  #include "libavutil/intreadwrite.h"
>  #include "avcodec.h"
>  #include "bswapdsp.h"
> --
> 2.13.0
>

Asking for trouble unless fuzzed well.

Kieran


More information about the ffmpeg-devel mailing list