Use CONFIG_VDPAU as condition for using ff_vdpau_mpeg_picture_complete.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 4 Apr 2011 18:11:19 +0000 (20:11 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 5 Apr 2011 16:23:10 +0000 (18:23 +0200)
CONFIG_VDPAU is the condition on which ff_vdpau_mpeg_picture_complete
is compiled in, so it is more appropriate, particularly since the
separate VDPAU decoder should be removed in the longer term.

libavcodec/mpeg12.c

index dde8510..4a17299 100644 (file)
@@ -2338,7 +2338,7 @@ static int decode_chunks(AVCodecContext *avctx,
                         s2->error_count += s2->thread_context[i]->error_count;
                 }
 
-                if (CONFIG_MPEG_VDPAU_DECODER && uses_vdpau(avctx))
+                if (CONFIG_VDPAU && uses_vdpau(avctx))
                     ff_vdpau_mpeg_picture_complete(s2, buf, buf_size, s->slice_count);
 
                 if (slice_end(avctx, picture)) {