Ticket #3490: 1.patch

File 1.patch, 840 bytes (added by Evgeniy Stepanov, 12 years ago)

proposed fix

  • libavcodec/cabac.c

    diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
    index 65579d8..66d4513 100644
    a b  
    3232#include "cabac.h"
    3333#include "cabac_functions.h"
    3434
    35 uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 63] = {
     35uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 64] = {
    3636 9,8,7,7,6,6,6,6,5,5,5,5,5,5,5,5,
    3737 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
    3838 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
  • libavcodec/cabac.h

    diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
    index eb6b521..51c7fd0 100644
    a b  
    3131
    3232#include "put_bits.h"
    3333
    34 extern uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 63];
     34extern uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 64];
    3535#define H264_NORM_SHIFT_OFFSET 0
    3636#define H264_LPS_RANGE_OFFSET 512
    3737#define H264_MLPS_STATE_OFFSET 1024