changeset 5876:5ebafc7f5efe

10l
author arpi
date Sun, 28 Apr 2002 00:16:22 +0000
parents bcf5220e98af
children 93de400ad48e
files libmpcodecs/vf_fame.c libmpcodecs/vf_lavc.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_fame.c	Sat Apr 27 23:45:00 2002 +0000
+++ b/libmpcodecs/vf_fame.c	Sun Apr 28 00:16:22 2002 +0000
@@ -81,7 +81,7 @@
     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 @@
     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();
--- a/libmpcodecs/vf_lavc.c	Sat Apr 27 23:45:00 2002 +0000
+++ b/libmpcodecs/vf_lavc.c	Sun Apr 28 00:16:22 2002 +0000
@@ -100,7 +100,7 @@
     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;
 }