Ticket #6204: vdpau_fix.diff

File vdpau_fix.diff, 2.5 KB (added by brian@…, 15 years ago)

patch for vdpau disable.

  • libs/libavcodec/h264.c

    old new  
    7272static VLC_TYPE run7_vlc_table[96][2];
    7373static const int run7_vlc_table_size = 96;
    7474
    75 extern int VDPAU_h264_add_data_chunk(H264Context *h, const uint8_t *buf, int buf_size);
    76 extern int VDPAU_h264_picture_complete(H264Context *h);
     75#ifdef HAVE_VDPAU
     76   extern int VDPAU_h264_add_data_chunk(H264Context *h, const uint8_t *buf, int buf_size);
     77   extern int VDPAU_h264_picture_complete(H264Context *h);
     78#endif
    7779
    7880static void svq3_luma_dc_dequant_idct_c(DCTELEM *block, int qp);
    7981static void svq3_add_idct_c(uint8_t *dst, DCTELEM *block, int stride, int qp, int dc);
  • libs/libavcodec/mpeg12.c

    old new  
    8484extern void DVDV_decode_mb(MpegEncContext *s);
    8585#endif
    8686
    87 extern int VDPAU_mpeg_field_start(MpegEncContext *s);
    88 extern void VDPAU_mpeg_picture_complete(MpegEncContext *s, const uint8_t *buf, int buf_size, int slice_count);
     87#ifdef HAVE_VDPAU
     88   extern int VDPAU_mpeg_field_start(MpegEncContext *s);
     89   extern void VDPAU_mpeg_picture_complete(MpegEncContext *s, const uint8_t *buf, int buf_size, int slice_count);
     90#endif
    8991
    9092static const enum PixelFormat pixfmt_xvmc_mpg2_420[] = {
    9193                                           PIX_FMT_XVMC_MPEG2_IDCT,
  • libs/libavcodec/mpegvideo.c

    old new  
    5858extern void XVMC_field_end(MpegEncContext *s);
    5959extern void XVMC_decode_mb(MpegEncContext *s);
    6060
    61 extern int VDPAU_mpeg_field_start(MpegEncContext *s);
     61#ifdef HAVE_VDPAU
     62   extern int VDPAU_mpeg_field_start(MpegEncContext *s);
     63#endif
    6264
    6365/* enable all paranoid tests for rounding, overflows, etc... */
    6466//#define PARANOID
  • libs/libavcodec/vc1.c

    old new  
    4242#define DC_VLC_BITS 9
    4343#define AC_VLC_BITS 9
    4444
    45 extern int VDPAU_vc1_decode_picture(MpegEncContext *s, AVCodecContext *avctx, VC1Context *v, const uint8_t *buf, int buf_size);
     45#ifdef HAVE_VDPAU
     46   extern int VDPAU_vc1_decode_picture(MpegEncContext *s, AVCodecContext *avctx, VC1Context *v, const uint8_t *buf, int buf_size);
     47#endif
    4648
    4749static const uint16_t table_mb_intra[64][2];
    4850