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>
Fri, 13 Mar 2015 16:06:10 +0000 (17:06 +0100)
commitb8c5cd5b8d6e0c2f8a66217448b5dd247d1eba89
tree2a6882b42ef8f706a96552296d174b27c9db8f75
parente2565069507693280060557d3f2774d6733542ad
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.
(cherry picked from commit 50833c9f7b4e1922197a8955669f8ab3589c8cef)

Conflicts:

libavcodec/proresenc_kostya.c

Conflicts:

libavcodec/faxcompr.c
libavcodec/s302menc.c
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