[Mesa-dev] [PATCH 1/2] st/vdpau: invert interlaced buffer checks

Christian König deathsimple at vodafone.de
Sat Mar 24 05:21:20 PDT 2012


That wasn't working as supposed.

Signed-off-by: Christian König <deathsimple at vodafone.de>
---
 src/gallium/state_trackers/vdpau/decode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c
index 0802f28..6ffd176 100644
--- a/src/gallium/state_trackers/vdpau/decode.c
+++ b/src/gallium/state_trackers/vdpau/decode.c
@@ -464,7 +464,7 @@ vlVdpDecoderRender(VdpDecoder decoder,
 
    if (vlsurf->video_buffer == NULL ||
        !screen->is_video_format_supported(screen, vlsurf->video_buffer->buffer_format, dec->profile) ||
-       buffer_support[vlsurf->video_buffer->interlaced]) {
+       !buffer_support[vlsurf->video_buffer->interlaced]) {
 
       /* destroy the old one */
       if (vlsurf->video_buffer)
-- 
1.7.5.4



More information about the mesa-dev mailing list