summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_ffmpeg.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-19 23:11:30 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-19 23:11:30 +0000
commit00d5bd330e57cccf4704c6fa4a915b9f3043e67f (patch)
treee2aa819a2b4256cb36ae7814380109172d31e5a9 /libmpcodecs/vd_ffmpeg.c
parent7facff64ef52427bb4bbdca6bef9bcdddd50a73f (diff)
downloadmpv-00d5bd330e57cccf4704c6fa4a915b9f3043e67f.tar.bz2
mpv-00d5bd330e57cccf4704c6fa4a915b9f3043e67f.tar.xz
accept I420/IYUV in query_format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5708 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r--libmpcodecs/vd_ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 78d7200281..8b9ce8cbfa 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -57,6 +57,8 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
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;
}