summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-03 21:40:30 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-03 21:40:30 +0000
commita9cce3d878c001b5413d62858c60eb7396a1d8ad (patch)
treefd5527096c90e7839587a87f306580858aceabc5 /libmpcodecs/vd.c
parent55e92bda686656d491e590ff5dfbd5b1ee8a15ec (diff)
downloadmpv-a9cce3d878c001b5413d62858c60eb7396a1d8ad.tar.bz2
mpv-a9cce3d878c001b5413d62858c60eb7396a1d8ad.tar.xz
pass outflags[] index via sh->outfmtidx to the vd->control() func (for VfW)
small hack - but other possible solutions are even worse :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7262 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd.c')
-rw-r--r--libmpcodecs/vd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/vd.c b/libmpcodecs/vd.c
index 23e6afc7ce..e60041a352 100644
--- a/libmpcodecs/vd.c
+++ b/libmpcodecs/vd.c
@@ -166,6 +166,7 @@ csp_again:
mp_msg(MSGT_CPLAYER,MSGL_DBG2,"vo_debug: query(%s) returned 0x%X (i=%d) \n",vo_format_name(out_fmt),flags,i);
if((flags&2) || (flags && j<0)){
// check (query) if codec really support this outfmt...
+ sh->outfmtidx=j; // pass index to the control() function this way
if(mpvdec->control(sh,VDCTRL_QUERY_FORMAT,&out_fmt)==CONTROL_FALSE)
continue;
j=i; vo_flags=flags; if(flags&2) break;