mirror of https://github.com/mpv-player/mpv
10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5877 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
66052c7bda
commit
c98cdaf4aa
|
@ -81,7 +81,7 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt){
|
|||
case IMGFMT_YV12:
|
||||
case IMGFMT_I420:
|
||||
case IMGFMT_IYUV:
|
||||
return (vf_next_query_format(vf,fmt) & (~(VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_ACCEPT_STRIDE)));
|
||||
return (vf_next_query_format(vf,IMGFMT_MPEGPES) & (~(VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_ACCEPT_STRIDE)));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -91,6 +91,7 @@ static int open(vf_instance_t *vf, char* args){
|
|||
vf->put_image=put_image;
|
||||
vf->query_format=query_format;
|
||||
vf->priv=malloc(sizeof(struct vf_priv_s));
|
||||
vf->default_caps=0;
|
||||
memset(vf->priv,0,sizeof(struct vf_priv_s));
|
||||
|
||||
vf->priv->ctx=fame_open();
|
||||
|
|
|
@ -100,7 +100,7 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt){
|
|||
case IMGFMT_YV12:
|
||||
case IMGFMT_I420:
|
||||
case IMGFMT_IYUV:
|
||||
return (vf_next_query_format(vf,fmt) & (~(VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_ACCEPT_STRIDE)));
|
||||
return (vf_next_query_format(vf,IMGFMT_MPEGPES) & (~(VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_ACCEPT_STRIDE)));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue