Move resetting of channels, sample_rate back to av_find_stream_info.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 11 Jul 2011 18:35:02 +0000 (20:35 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 12 Jul 2011 17:44:59 +0000 (19:44 +0200)
commit896e59758a11ff645879098b5ebca2e753731b4e
tree88d2053e5dba0296cbc216e9e829252e3878dfd7
parent45ecc7a294d56e41dab621512f6f70fc2578340e
Move resetting of channels, sample_rate back to av_find_stream_info.

Resetting it on codec init would incorrectly clear the values
if av_find_stream_info was already run before, in particular
breaking ffplay.

This fixes trac tickets #213 and #262.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavcodec/aacdec.c
libavformat/utils.c