static int wma_decode_superframe(AVCodecContext *avctx,
void *data, int *data_size,
- uint8_t *buf, int buf_size)
+ const uint8_t *buf, int buf_size)
{
WMACodecContext *s = avctx->priv_data;
int nb_frames, bit_offset, i, pos, len;
s->last_superframe_len = 0;
return 0;
}
+ if (buf_size < s->block_align)
+ return 0;
+ buf_size = s->block_align;
samples = data;
NULL,
ff_wma_end,
wma_decode_superframe,
+ .long_name = "Windows Media Audio 1",
};
AVCodec wmav2_decoder =
NULL,
ff_wma_end,
wma_decode_superframe,
+ .long_name = "Windows Media Audio 2",
};