Ticket #2288: patchvda.diff

File patchvda.diff, 496 bytes (added by cehoyos, 4 years ago)
  • libavcodec/h264.c

    diff --git a/libavcodec/h264.c b/libavcodec/h264.c
    index fe12846..c0115bb 100644
    a b int ff_h264_frame_start(H264Context *h) 
    17251725    if ((ret = alloc_picture(h, pic)) < 0) 
    17261726        return ret; 
    17271727    if(!h->sync && !h->avctx->hwaccel && 
     1728#if CONFIG_H264_VDA_DECODER 
     1729       h->avctx->codec != ff_h264_vda_decoder && 
     1730#endif 
    17281731       !(h->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)) 
    17291732        avpriv_color_frame(&pic->f, c); 
    17301733