[vlc-devel] Some bugs (+ fixes)

Hans-Peter Fischer editor at hei-news.de
Sun Feb 19 16:29:47 CET 2006

I'd like to inform you of some bugs I've found in vlc 0.8.4a and the 
solutions that work for me. (Warning: I'm not a professional programmer ;-)


Movie stops in the middle of last chapter. Example: Artificial Eye DVD 
"Ivan's Childhood".

Error messages:
- "dsi->dsi_gi.zero1 == 0" (from libdvdread) and "i_pack_len >= 1024" 
(from vlc's dvdread access module)
- "Expected NAV packet but none found." (when using libdvdnav only)

My solution:
In modules/access/dvdread.c, line 1151, replace
"p_sys->i_next_vobu = p_sys->i_cur_block +
	( p_sys->dsi_pack.vobu_sri.next_vobu & 0x7fffffff );"
"p_sys->i_next_vobu = p_sys->i_cur_block + p_sys->i_pack_len + 1;"


With some deinterlace filters (e. g. "blend", I think), vlc exits due to 
an "Illegal instruction".
Cause: in modules/video_filter/deinterlace.c, line 225, you check for 
"CPU_CAPABILITY_MMX". The AMD K6 processor has MMX capability, but does 
not support the "pavgb" instruction.

My fix for the K6:
Check for CPU_CAPABILITY_3DNOW and replace pavgb in line 949 by 
"pavgusb" (and "emms" in line 1004 by "femms"?).


Sometimes, DVD subtitles are almost totally transparent. Example: 
"Platform" from Artificial Eye. (I already reported this bug a couple of 
years ago.)

My solution:
In modules/codec/spudec/parse.c, move lines 85 - 88 to line 244. (That's 
where the warning message "ignoring blank alpha palette" is.)


A wishlist item/suggestion: amend line 1987 in 
modules/video_output/x11/xcommon.c so that XV_BRIGHTNESS can be set from 
outside (e. g. via getenv).

I hope the above will help you to further improve your excellent program.



::: http://www.stalkerzone.net/ :::

This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html

More information about the vlc-devel mailing list