twinvq: set block align for codecs and use it in size checks
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 24 Aug 2013 13:00:08 +0000 (15:00 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 26 Aug 2013 07:23:39 +0000 (09:23 +0200)
commit9e7b62f0fb7462a902330fcc82cf596388f0187b
treeaae1f336a70d250e218f219b875f95c457404668
parentb89e8759e053792704741d08cbc41c9ac3c7ed63
twinvq: set block align for codecs and use it in size checks

This both allows factoring out size check for both MetaSound and TwinVQ-VQF
decoders and fixes the situation when there are several MetaSound frames
stuffed together (that happens in 8kHz @ 8kbps MetaSound in ASF for example).
libavcodec/metasound.c
libavcodec/twinvq.c
libavcodec/twinvqdec.c