oggdec: Recreate streams only in the 1 stream case.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Apr 2012 12:03:26 +0000 (14:03 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Apr 2012 12:03:26 +0000 (14:03 +0200)
commit9bb3b7d028395a8fe70148dec89430e8aae7a7e2
treea3e38dfbd22197aa9ed9b76e86784a34d2e6d71b
parent15141f939dc725451644869f4d413adb46927677
oggdec: Recreate streams only in the 1 stream case.

Other cases are not supported and lead to inconsistencies which
can lead to out of array writes.

Reported-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggdec.c