diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2013-10-20 16:15:03 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-11-14 13:38:10 +0100 |
commit | 1afa8a7568ba57ad0cd2923f6e641e10d32cded4 (patch) | |
tree | e0e8b4180f44f7618768fe2726ba723d3a00698e /libavcodec/twinvq.h | |
parent | ddb839e9286594ff7a862a956402106fca7055c9 (diff) | |
download | ffmpeg-1afa8a7568ba57ad0cd2923f6e641e10d32cded4.tar.gz |
twinvq: support multiple frames per packet
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/twinvq.h')
-rw-r--r-- | libavcodec/twinvq.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/twinvq.h b/libavcodec/twinvq.h index d3a548a9f9..f6b3942ff2 100644 --- a/libavcodec/twinvq.h +++ b/libavcodec/twinvq.h @@ -58,6 +58,8 @@ enum TwinVQFrameType { #define TWINVQ_SUBBLOCKS_MAX 16 #define TWINVQ_BARK_N_COEF_MAX 4 +#define TWINVQ_MAX_FRAMES_PER_PACKET 2 + /** * Parameters and tables that are different for each frame type */ @@ -162,7 +164,8 @@ typedef struct TwinVQContext { // scratch buffers float *tmp_buf; - TwinVQFrameData bits; + int frame_size, frames_per_packet, cur_frame; + TwinVQFrameData bits[TWINVQ_MAX_FRAMES_PER_PACKET]; enum TwinVQCodec codec; |