OSDN Git Service

Fix buffer_size argument to init_put_bits() in multiple encoders.
authorDyami Caliri <dyami@dragonframe.com>
Thu, 26 Feb 2015 18:17:01 +0000 (10:17 -0800)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 26 Feb 2015 19:14:00 +0000 (20:14 +0100)
commit50833c9f7b4e1922197a8955669f8ab3589c8cef
tree6be84f8ce9233207b72499d91e6e55594f010631
parentb851bc20c6931c084710e69f7eec30d8c1bdb68e
Fix buffer_size argument to init_put_bits() in multiple encoders.

Several encoders were multiplying the buffer size by 8, in order to get
a bit size. However, the buffer_size argument is for the byte size of
the buffer. We had experienced crashes encoding prores (Anatoliy) at
size 4096x4096.
libavcodec/aacenc.c
libavcodec/adpcmenc.c
libavcodec/faxcompr.c
libavcodec/flashsv2enc.c
libavcodec/flashsvenc.c
libavcodec/nellymoserenc.c
libavcodec/proresenc_anatoliy.c
libavcodec/proresenc_kostya.c
libavcodec/s302menc.c