changeset 5707:d0308affc401

accept I420/IYUV in query_format
author arpi
date Fri, 19 Apr 2002 23:11:30 +0000
parents 26c89aadf6f8
children 8d7c3ea85ed0
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Fri Apr 19 22:19:42 2002 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Fri Apr 19 23:11:30 2002 +0000
@@ -57,6 +57,8 @@
     switch(cmd){
     case VDCTRL_QUERY_FORMAT:
 	if( (*((int*)arg)) == IMGFMT_YV12 ) return CONTROL_TRUE;
+	if( (*((int*)arg)) == IMGFMT_IYUV ) return CONTROL_TRUE;
+	if( (*((int*)arg)) == IMGFMT_I420 ) return CONTROL_TRUE;
 	if( (*((int*)arg)) == IMGFMT_YUY2 && ctx->yuy2_support ) return CONTROL_TRUE;
 	return CONTROL_FALSE;
     }