summaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-01 21:36:09 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-01 21:36:09 +0200
commitf066b0aa840f5c9c95185d6da39702e1084dc2ff (patch)
treec1bcac8dc8938fe4f45ec61dad95da3880ac74b4 /src/utils.h
parent08e121571ba3e16efbf2ead1d7e10075b7e00cea (diff)
downloadODR-AudioEnc-f066b0aa840f5c9c95185d6da39702e1084dc2ff.tar.gz
ODR-AudioEnc-f066b0aa840f5c9c95185d6da39702e1084dc2ff.tar.bz2
ODR-AudioEnc-f066b0aa840f5c9c95185d6da39702e1084dc2ff.zip
Fix crash with bitrates above 144kbps
The output buffer was not allocated big enough.
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index a5aaf8c..7cd9a96 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -36,6 +36,8 @@ struct zmq_frame_header_t
#define ZMQ_ENCODER_FDK 1
+#define ZMQ_HEADER_SIZE sizeof(struct zmq_frame_header_t)
+
/* The expected frame size incl data of the given frame */
#define ZMQ_FRAME_SIZE(f) (sizeof(struct zmq_frame_header_t) + f->datasize)