vo_vdpau: add extra check for unknown image format
commit3acf2eb56318b0c6cbdeb25b67154ae5e493e7d6
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 29 Oct 2010 15:38:22 +0000 (29 18:38 +0300)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 2 Nov 2010 02:14:43 +0000 (2 04:14 +0200)
tree2f1adf327fb785bce50d025da99e4e8e931a7eaa
parent8115fedc97871c27fb096d3365fb7a052d42dd01
vo_vdpau: add extra check for unknown image format

Add a default case for unknown image format in create_vdp_decoder. I
think this condition shouldn't currently happen, but it's worth a
sanity check. Avoids a compiler warning about vdp_decoder_profile
being possibly used uninitialized.

Also remove an obsolete #ifdef (should always be true now).
libvo/vo_vdpau.c