From 24dadf50a3ea4b5a75f066adc00bbf8fd0f10789 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 14 Feb 2010 11:06:04 +0000 Subject: Remove useless code, QUERY_FORMAT already ensures the requested format is supported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30562 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_theora.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vd_theora.c b/libmpcodecs/vd_theora.c index 3bf7ab83b9..882f4774bf 100644 --- a/libmpcodecs/vd_theora.c +++ b/libmpcodecs/vd_theora.c @@ -69,16 +69,6 @@ static int init(sh_video_t *sh){ ogg_packet op; int i; - /* check whether video output format is supported */ - switch(sh->codec->outfmt[sh->outfmtidx]) - { - case IMGFMT_YV12: /* well, this should work... */ break; - default: - mp_msg (MSGT_DECVIDEO,MSGL_ERR,"Unsupported out_fmt: 0x%X\n", - sh->codec->outfmt[sh->outfmtidx]); - return 0; - } - /* this is not a loop, just a context, from which we can break on error */ do { -- cgit v1.2.3