Re: libdvdread: about pgc_command_tbl_t in ifo_read.c and ifo_types.h

H}kan Hjort <[email protected]> Mon, 5 Apr 2004 18:29:31 +0200
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
Mon Apr 05 2004, Yi-Shin Li wrote:
> H}kan Hjort wrote:
> >Sun Apr 04 2004, Yi-Shin Li wrote:
> >>
> >>The data structure pgc_command_tbl_t.zero_1 (line# 266) of
> >>ifo_types.h should actually be "last_byte". Am I correct?
> >>
> >It would indeed seem so.  We don't really use all the info in
> >the IFO files, and the 'last_byte' info is not of much use...
> >It should always be equal too (or I guess larger than)
> >PGC_COMMAND_TBL_SIZE + total * COMMAND_DATA_SIZE
> >where total is the total number of commands (pre+post+cell).
> >
> >Normaly I have CHECK_ZERO() asserts on all the 'unused' entries
> >but obviously missed this one.  All the other last_byte entries
> >are 32bit fields also...  
> >  
> Per http://dvd.sourceforge.net/dvdinfo/pgc.html#cmd , the 4th
> entry of pgc_command_tbl_t should be "uint16_t last_byte" instead
> of "uint16_t zero_1". I've dumped the IFO of MALENA; I think it
> supports my point.
> 
Sorry, my earlier post wasn't very clear, I checked a couple of DVDs
and it seemed correct so I made these changes.  It's alredy in CVS.

> Since I don't have DVD-VIDEO spec on my hand, I am not positive
> about this. -ysli
> 
We'll if you happen to pick it up, could you post it on the net 
somewhere ;-)

-- 
HÃ¥kan Hjort