[FFmpeg-devel] [PATCH 3/5] avcodec/utvideodec: enable unchecked bitreader
Paul B Mahol
onemda at gmail.com
Wed Jun 28 00:30:39 EEST 2017
On 6/27/17, Kieran Kunhya <kierank at obe.tv> wrote:
> 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.
Not really, it allocates enough bytes extra.
More information about the ffmpeg-devel
mailing list