diff options
author | Martin Storsjö <martin@martin.st> | 2012-05-23 16:28:25 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-05-23 22:23:43 +0300 |
commit | 1e8561e36931d6e2c4294702907ca0beb4cba3b6 (patch) | |
tree | e6e9bc52c508a150b52e74bd754fba9a9f591f51 /libavfilter/formats.c | |
parent | 90290a5150e84fb138ccde57657dc03830f08c1c (diff) | |
download | ffmpeg-1e8561e36931d6e2c4294702907ca0beb4cba3b6.tar.gz |
flvdec: Make sure sample_rate is set to the updated value
The sample_rate variable is used for checks for audio format
changes at the end of the function.
This fixes cases where the sample rate was set from the codec
id by flv_set_audio_codec (as for nellymoser 8 kHz/16 kHz),
so the value set to last_sample_rate wasn't equal to sample_rate
at this point. This caused the demuxer otherwise reports a spurious
change to 5512 Hz and back to the correct one.
Updating channels in the same way is only done for consistency.
Currently, flv_set_audio_codec doesn't update that value.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavfilter/formats.c')
0 files changed, 0 insertions, 0 deletions