mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
divx5 support into libmpcodecs (untested)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4998 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
545c1b7e47
commit
eec56fa481
@ -69,6 +69,10 @@ static int init(sh_video_t *sh){
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unsupported out_fmt: 0x%X\n",sh->codec->outfmt[sh->outfmtidx]);
|
||||
return 0;
|
||||
}
|
||||
#ifdef DECORE_DIVX5
|
||||
dec_param.codec_version = (sh->format==mmioFOURCC('D','I','V','3'))?311:500;
|
||||
dec_param.build_number = 0;
|
||||
#endif
|
||||
dec_param.x_dim = sh->disp_w;
|
||||
dec_param.y_dim = sh->disp_h;
|
||||
decore(0x123, DEC_OPT_INIT, &dec_param, NULL);
|
||||
|
@ -103,6 +103,10 @@ static int init(sh_video_t *sh){
|
||||
dec_param.output_format=DEC_USER;
|
||||
#else
|
||||
dec_param.color_depth = 32;
|
||||
#endif
|
||||
#ifdef DECORE_DIVX5
|
||||
dec_param.codec_version = (sh->format==mmioFOURCC('D','I','V','3'))?311:500;
|
||||
dec_param.build_number = 0;
|
||||
#endif
|
||||
dec_param.x_dim = sh->disp_w;
|
||||
dec_param.y_dim = sh->disp_h;
|
||||
|
Loading…
Reference in New Issue
Block a user