changeset 36616:b98f5481ed41

vd: Fix setting of outfmtidx during VDCTRL_QUERY_FORMAT
author reimar
date Thu, 23 Jan 2014 19:21:53 +0000
parents 97cfc1701d55
children 7d4fa6681d2b
files libmpcodecs/vd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,