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:49:50 +0000 (20:49 +0100)
commitb49f8de4ec33e8c8c599b5fba00416f2935ff4a7
treef65eb6a1a3c7e140f0ad9782b0a5b1f51c9cdb6c
parent11141fb9ff3258c0e2563a984e358d7d71ed0467
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
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