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
This commit is contained in:
reimar 2010-02-14 11:06:04 +00:00
parent 9c5a56a1c4
commit 24dadf50a3
1 changed files with 0 additions and 10 deletions

View File

@ -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
{