diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-09-07 22:52:06 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-09-23 20:54:29 -0400 |
commit | 9ff6d0791b220d80844b45c9217113306a50a6cc (patch) | |
tree | fc2eb18492dd8d479f3deeed279998a2a11eccfd /libavcodec/adpcmenc.c | |
parent | b304244b54611e9a84e22ab40e94be4a7a474c21 (diff) | |
download | ffmpeg-9ff6d0791b220d80844b45c9217113306a50a6cc.tar.gz |
adpcmenc: Set bits_per_coded_sample
Diffstat (limited to 'libavcodec/adpcmenc.c')
-rw-r--r-- | libavcodec/adpcmenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/adpcmenc.c b/libavcodec/adpcmenc.c index 6295eedc55..2a117f4aae 100644 --- a/libavcodec/adpcmenc.c +++ b/libavcodec/adpcmenc.c @@ -86,6 +86,8 @@ static av_cold int adpcm_encode_init(AVCodecContext *avctx) FF_ALLOC_OR_GOTO(avctx, s->trellis_hash, 65536 * sizeof(*s->trellis_hash), error); } + avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id); + switch(avctx->codec->id) { case CODEC_ID_ADPCM_IMA_WAV: avctx->frame_size = (BLKSIZE - 4 * avctx->channels) * 8 / (4 * avctx->channels) + 1; /* each 16 bits sample gives one nibble */ |