g729dec: set sample format.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-09-24 20:55:41 +02:00
parent 5d5b3e527a
commit 91c5f81b74
1 changed files with 1 additions and 0 deletions

View File

@ -345,6 +345,7 @@ static av_cold int decoder_init(AVCodecContext * avctx)
av_log(avctx, AV_LOG_ERROR, "Only mono sound is supported (requested channels: %d).\n", avctx->channels);
return AVERROR(EINVAL);
}
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
/* Both 8kbit/s and 6.4kbit/s modes uses two subframes per frame. */
avctx->frame_size = SUBFRAME_SIZE << 1;