h264: vdpau: fix crash with unsupported colorspace
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 18 Aug 2012 14:11:45 +0000 (16:11 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Aug 2012 14:36:09 +0000 (16:36 +0200)
commite70730045a22d053a64473df20886edfa4775e59
treee2addee8225290b93394c51b8668fa2437c3b901
parent6c180b35c43f0738d8a3d5c08a01209b51eda569
h264: vdpau: fix crash with unsupported colorspace

The h264_vdpau decoder crashed if output colorspace was not 8-bit 420.
Add a check to error out instead (current hardware does not support
other colorspaces, so successful decoding is not possible).

Check implemented at a different place by michael, thus blame for bugs goes to michael
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c