diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-27 20:16:45 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-11-01 21:23:03 -0400 |
commit | 6ac34eed54f8e0298acb16636d0104c297e3d09f (patch) | |
tree | 17be20d43737bf1ab5b36aadfef860e7c3e09aae /libpostproc/postprocess.c | |
parent | d405237baea7ad3b6cb0bf9d91d63dd8a69e75ea (diff) | |
download | ffmpeg-6ac34eed54f8e0298acb16636d0104c297e3d09f.tar.gz |
g726: use bits_per_coded_sample instead of bitrate to determine mode
This requires some workarounds in the WAV muxer and demuxer. We need to write
the correct bits_per_coded_sample and block_align in the muxer. In the
demuxer, we cannot rely on the bits_per_coded_sample value, so we use the bit
rate and sample rate to determine the value.
This avoids having the decoder rely on AVCodecContext.bit_rate, which is not
required to be set by the user for decoding according to our API.
Diffstat (limited to 'libpostproc/postprocess.c')
0 files changed, 0 insertions, 0 deletions