# HG changeset patch # User reimar # Date 1266145564 0 # Node ID b7ef5e62a64912288fcbfe8eddd778a814e86089 # Parent e96015d17ffbdb778bca78a8a4b7521b63198332 Remove useless code, QUERY_FORMAT already ensures the requested format is supported. diff -r e96015d17ffb -r b7ef5e62a649 libmpcodecs/vd_theora.c --- a/libmpcodecs/vd_theora.c Sun Feb 14 11:04:14 2010 +0000 +++ b/libmpcodecs/vd_theora.c Sun Feb 14 11:06:04 2010 +0000 @@ -69,16 +69,6 @@ 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 {