opusenc: fix crash on pathological parameters
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 22 Nov 2011 15:33:20 +0000 (15:33 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 22 Nov 2011 15:33:20 +0000 (15:33 +0000)
commit49e08a18357219862b92fd779433631701900cf4
treebe052c1dc367d60cadc5f1e32e311c9a167587ce
parentda5c41930c4083979b1745f4d8848d97fe03d8eb
opusenc: fix crash on pathological parameters

Asking for 1 bit/s would select a 0 byte buffer, leading
to a crash. Buffer size is now controlled by a max-payload-size
property, which can't be less than 2.
ext/opus/gstopusenc.c
ext/opus/gstopusenc.h