adpcmenc: Use correct frame_size for Yamaha ADPCM.
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 31 Jan 2012 20:57:53 +0000 (15:57 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 20 Feb 2012 20:52:32 +0000 (15:52 -0500)
commit770a5c6d025e9c8eb3f5aba9cf1d7d7938fb918a
tree8419878c8ab8e252551de4899da14bb184f7b4b8
parent91a28b0e8e4f09a8256727e8a514bf98da81e186
adpcmenc: Use correct frame_size for Yamaha ADPCM.

Output packet size should match avctx->block_align. The target output packet
size is 1024 bytes.
Before:
mono   - 1024 samples -> 512 bytes
stereo - 2048 samples -> 2048 bytes
After:
mono   - 2048 samples -> 1024 bytes
stereo - 1024 samples -> 1024 bytes
libavcodec/adpcmenc.c
tests/ref/acodec/adpcm_yam