mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
g729dec: set sample format.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5d5b3e527a
commit
91c5f81b74
@ -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);
|
av_log(avctx, AV_LOG_ERROR, "Only mono sound is supported (requested channels: %d).\n", avctx->channels);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
|
||||||
|
|
||||||
/* Both 8kbit/s and 6.4kbit/s modes uses two subframes per frame. */
|
/* Both 8kbit/s and 6.4kbit/s modes uses two subframes per frame. */
|
||||||
avctx->frame_size = SUBFRAME_SIZE << 1;
|
avctx->frame_size = SUBFRAME_SIZE << 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user