mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 02:22:19 +00:00
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:
parent
9c5a56a1c4
commit
24dadf50a3
@ -69,16 +69,6 @@ static int init(sh_video_t *sh){
|
|||||||
ogg_packet op;
|
ogg_packet op;
|
||||||
int i;
|
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 */
|
/* this is not a loop, just a context, from which we can break on error */
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user