# HG changeset patch # User reimar # Date 1390504913 0 # Node ID b98f5481ed4128f6cc62ac80478aab1537544775 # Parent 97cfc1701d55ffa960fe1506bf8e807e4ffa2759 vd: Fix setting of outfmtidx during VDCTRL_QUERY_FORMAT diff -r 97cfc1701d55 -r b98f5481ed41 libmpcodecs/vd.c --- a/libmpcodecs/vd.c Thu Jan 23 19:13:50 2014 +0000 +++ b/libmpcodecs/vd.c Thu Jan 23 19:21:53 2014 +0000 @@ -195,7 +195,7 @@ if (out_fmt == (unsigned int) 0xFFFFFFFF) continue; // check (query) if codec really support this outfmt... - sh->outfmtidx = j; // pass index to the control() function this way + sh->outfmtidx = i; // pass index to the control() function this way if (mpvdec->control(sh, VDCTRL_QUERY_FORMAT, &out_fmt) == CONTROL_FALSE) { mp_msg(MSGT_CPLAYER, MSGL_DBG2,