OSDN Git Service

h264: vdpau: fix crash with unsupported colorspace
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 7 Aug 2012 11:48:06 +0000 (14:48 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 17 Aug 2012 17:08:53 +0000 (20:08 +0300)
commit2e8f3cbcda536970aee03f5543185d7fc01232a1
treee333420caf1636cd6af399572ad74343fc838bc6
parentca00a7e809a4b9c9fb146403d278964b88d16b85
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).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/h264.c