Hi

On Fri, Nov 8, 2013 at 10:17 AM, Kostya Shishkov
<[email protected]> wrote:
>
> needed for 22kHz@20kbps modes in MetaSound (and nothing else so far)



>  /**
>  * 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];

Is there any reason why you can not keep a single unpacket data at a
time? I mean, why cannot you do something like this pseudocode?

    for (i=0; i < subframes_count; i++) {
       metasound_read_bitstream(ctx, gb); // Unpack one single frame
       ff_twinvq_decode_frame(ctx, out); // Decode the unpacked frame
       out += frame_output_size;
    }

-Vitor
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to