diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-14 11:06:04 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-14 11:06:04 +0000 |
commit | 24dadf50a3ea4b5a75f066adc00bbf8fd0f10789 (patch) | |
tree | a916e190a92dc16af42918e5d43b50b60edf7cd9 | |
parent | 9c5a56a1c4f76b7884a035200703e76d8ecef22e (diff) | |
download | mpv-24dadf50a3ea4b5a75f066adc00bbf8fd0f10789.tar.bz2 mpv-24dadf50a3ea4b5a75f066adc00bbf8fd0f10789.tar.xz |
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
-rw-r--r-- | libmpcodecs/vd_theora.c | 10 |
1 files changed, 0 insertions, 10 deletions
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 { |