Browse code

Disable vdpau support if the detected libvdpau does not support MPEG-4.

Originally committed as revision 20854 to svn://svn.ffmpeg.org/ffmpeg/trunk

Alex Converse authored on 2009/12/14 15:33:43
Showing 1 changed files
... ...
@@ -2481,6 +2481,11 @@ check_func XOpenDisplay -lX11           &&
2481 2481
 check_func XShmCreateImage -lX11 -lXext &&
2482 2482
 check_func XFixesGetCursorImage -lX11 -lXext -lXfixes
2483 2483
 
2484
+check_cpp_condition \
2485
+    vdpau/vdpau.h "defined VDP_DECODER_PROFILE_MPEG4_PART2_ASP" ||
2486
+    ( echolog "Please upgrade to libvdpau >= 0.2 if you would like vdpau support." &&
2487
+      disable vdpau )
2488
+
2484 2489
 enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
2485 2490
 
2486 2491
 # add some useful compiler flags if supported