lavc: check media type of the decoder before calling it.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Apr 2012 00:57:27 +0000 (02:57 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Apr 2012 00:57:27 +0000 (02:57 +0200)
commit7c9d69360cd29415591816b70e722235a4319e08
tree820914eeddc122b5cbdba06ac9505b249cd8d6c9
parent2f7bd3b5162c240e62c11cf0373342fa89f26c8f
lavc: check media type of the decoder before calling it.

This fixes a segfault where a video decoder was called
from avcodec_decode_audio*().

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c