Mercurial > libavcodec.hg
diff pcm.c @ 7823:4525dcd81357 libavcodec
Bump Major version, this commit is almost just renaming bits_per_sample to
bits_per_coded_sample but that cannot be done seperately.
Patch by Luca Abeni
Also reset the minor version and fix the forgotton change to libfaad.
Note: The API/ABI should not be considered stable yet, there still may
be a change done here or there if some developer has some cleanup ideas and
patches!
author | michael |
---|---|
date | Mon, 08 Sep 2008 14:24:59 +0000 |
parents | 3d1ffb62e933 |
children | 7a463923ecd1 |
line wrap: on
line diff
--- a/pcm.c Mon Sep 08 13:37:12 2008 +0000 +++ b/pcm.c Mon Sep 08 14:24:59 2008 +0000 @@ -118,8 +118,8 @@ break; } - avctx->bits_per_sample = av_get_bits_per_sample(avctx->codec->id); - avctx->block_align = avctx->channels * avctx->bits_per_sample/8; + avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id); + avctx->block_align = avctx->channels * avctx->bits_per_coded_sample/8; avctx->coded_frame= avcodec_alloc_frame(); avctx->coded_frame->key_frame= 1; @@ -354,7 +354,7 @@ /* av_get_bits_per_sample returns 0 for CODEC_ID_PCM_DVD */ if (CODEC_ID_PCM_DVD == avctx->codec_id) /* 2 samples are interleaved per block in PCM_DVD */ - sample_size = avctx->bits_per_sample * 2 / 8; + sample_size = avctx->bits_per_coded_sample * 2 / 8; n = avctx->channels * sample_size; @@ -470,7 +470,7 @@ case CODEC_ID_PCM_DVD: dst_int32_t = data; n /= avctx->channels; - switch (avctx->bits_per_sample) { + switch (avctx->bits_per_coded_sample) { case 20: while (n--) { c = avctx->channels;