# HG changeset patch # User arpi_esp # Date 989805992 0 # Node ID ec3accad050cdf913bd94a4d79ea004ac72976a9 # Parent 8a7cd373daec7fd33169f698525e5ba058117d27 opendivx 0.50cvs stuff added (disabled by default) diff -r 8a7cd373daec -r ec3accad050c mplayer.c --- a/mplayer.c Sun May 13 23:17:01 2001 +0000 +++ b/mplayer.c Mon May 14 02:06:32 2001 +0000 @@ -1187,12 +1187,25 @@ if(verbose) printf("OpenDivX video codec\n"); { DEC_PARAM dec_param; DEC_SET dec_set; +// DEC_MEM_REQS dec_mem; dec_param.x_dim = sh_video->bih->biWidth; dec_param.y_dim = sh_video->bih->biHeight; - dec_param.color_depth = 32; +#if 0 + // 0.50-CVS + decore(0x123, DEC_OPT_MEMORY_REQS, &dec_param, &dec_mem); + dec_param.buffers.mp4_edged_ref_buffers=malloc(dec_mem.mp4_edged_ref_buffers_size); + dec_param.buffers.mp4_edged_for_buffers=malloc(dec_mem.mp4_edged_for_buffers_size); + dec_param.buffers.mp4_display_buffers=malloc(dec_mem.mp4_display_buffers_size); + dec_param.buffers.mp4_state=malloc(dec_mem.mp4_state_size); + dec_param.buffers.mp4_tables=malloc(dec_mem.mp4_tables_size); + dec_param.buffers.mp4_stream=malloc(dec_mem.mp4_stream_size); +#else + dec_param.color_depth = 32; +#endif decore(0x123, DEC_OPT_INIT, &dec_param, NULL); dec_set.postproc_level = divx_quality; decore(0x123, DEC_OPT_SETPP, &dec_set, NULL); + } if(verbose) printf("INFO: OpenDivX video codec init OK!\n"); break;