Ticket #2288: patchvda2.diff

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

    diff --git a/libavcodec/h264.c b/libavcodec/h264.c
    index e854ded..f21d35f 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       strcmp(h->avctx->codec->name, "h264_vda") && 
    17281729       !(h->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)) 
    17291730        avpriv_color_frame(&pic->f, c); 
    17301731