diff options
author | Martin Storsjö <martin@martin.st> | 2013-09-12 11:31:53 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-09-16 11:04:52 +0300 |
commit | 5bbfe193a0a41bd2adb648c8c3f6901a575734a2 (patch) | |
tree | fa8f5f9e0c6e87f76db222e538e4036e29197f7d /libavcodec/cavsdec.c | |
parent | 0ef1660a6365ce60ead8858936b6f3f8ea862826 (diff) | |
download | ffmpeg-streaming-5bbfe193a0a41bd2adb648c8c3f6901a575734a2.zip ffmpeg-streaming-5bbfe193a0a41bd2adb648c8c3f6901a575734a2.tar.gz |
vocdec: Don't update codec parameters mid-stream
If we really want to support parameter changes, they need to be
signalled along with the AVPackets as parameter change side data,
not just changing the AVCodecContext parameters when a packet
is demuxed (since there may be other earlier packets yet undecoded).
Something similar was already done for the sample rate in 0883109b2,
but some parameters were left changeable.
This avoids having to recheck the channel count for validity for
each decoded frame in (ad)pcm decoders, unless the decoders
explicitly say that they accept parameter changes.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/cavsdec.c')
0 files changed, 0 insertions, 0 deletions