Changeset 1e8561e3 in ffmpeg

Timestamp:
May 23, 2012, 7:23:43 PM (13 years ago)
Author:
Martin Storsjö <martin@martin.st>
Branches:
master
Children:
c7448c1
Parents:
90290a51
git-author:
Martin Storsjö <martin@martin.st> (05/23/12 13:28:25)
git-committer:
Martin Storsjö <martin@martin.st> (05/23/12 19:23:43)
Message:

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>

(No files)

Note: See TracChangeset for help on using the changeset viewer.