Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
sox
> sox-14.2.0-vorbis.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sox-14.2.0-vorbis.patch of Package sox
--- src/vorbis1.h +++ src/vorbis1.h @@ -21,8 +21,11 @@ #pragma warning(push, 1) #endif - vorbis_encode_init_vbr( - &ve->vi, ft->signal.channels, ft->signal.rate + .5, quality / 10); + if (vorbis_encode_init_vbr(&ve->vi, ft->signal.channels, ft->signal.rate + .5, quality / 10)) + { + lsx_fail_errno(ft, SOX_EFMT, "libVorbis does not support this mode (eg, too low a bitrate, etc.)"); + return (SOX_EOF); + } #if defined __SUNPRO_CC #pragma enable_warn