On 3/19/12, Kostya Shishkov <[email protected]> wrote:
> On Sun, Mar 18, 2012 at 09:13:27PM +0000, Paul B Mahol wrote:
>> From: Bastien Bouclet <[email protected]>
>>
>> Fixes ticket #962.
>>
>> Signed-off-by: Paul B Mahol <[email protected]>
>> ---
>>  libavcodec/bink.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/libavcodec/bink.c b/libavcodec/bink.c
>> index f8a9b5b..98abb8c 100644
>> --- a/libavcodec/bink.c
>> +++ b/libavcodec/bink.c
>> @@ -148,7 +148,7 @@ static void init_lengths(BinkContext *c, int width,
>> int bw)
>>  {
>>      c->bundle[BINK_SRC_BLOCK_TYPES].len = av_log2((width >> 3) + 511) +
>> 1;
>>
>> -    c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2((width >> 4) + 511)
>> + 1;
>> +    c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2(((width + 7) >> 4)
>> + 511) + 1;
>>
>>      c->bundle[BINK_SRC_COLORS].len = av_log2(bw*64 + 511) + 1;
>>
>> --
>
> Hmm, where can I find files to test?
> Also I've checked with the reference decoder and it seems to pass
> (width + 7) & ~7 for width parameter instead, maybe I should do the same.

https://ffmpeg.org/trac/ffmpeg/ticket/962
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to