shorten: dont leave invalid channel counts in the context.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 13 Feb 2013 00:03:30 +0000 (01:03 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 3 Mar 2013 01:58:29 +0000 (02:58 +0100)
commit82213d67bad8785aef8806855fd0d291954193df
tree7c271fc6eb4df2e478098cf457b79d8e4089ebf0
parentd17b9469c940f056d87fefc79d80fac47c69c1d8
shorten: dont leave invalid channel counts in the context.

Fixes freeing invalid addresses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4f1279154ee9baf2078241bf5619774970d18b25)

Conflicts:

libavcodec/shorten.c
libavcodec/shorten.c