[libdvdnav-devel] IFO header parser bug?

Jean-Baptiste Kempf jb at videolan.org
Sat Jun 20 10:56:33 CEST 2020


David,

We need to check in the specification, then. No?

jb

On Sun, May 10, 2020, at 02:53, David Ehrmann wrote:
> Apologies if this isn't the right place for libdvdread questions, but there wasn't a libdvdread-specific mailing list.
> 
> I was authoring a DVD and ran across a discrepancy between the behavior of dvdauthor and libdvdread. read_video_attr() reads the second byte of video attributes as follows:
> 
> va->line21_cc_1 = dvdread_getbits(&state, 1);
> va->line21_cc_2 = dvdread_getbits(&state, 1);
> va->unknown1 = dvdread_getbits(&state, 1);
> va->bit_rate = dvdread_getbits(&state, 1);
> va->picture_size = dvdread_getbits(&state, 2);
> va->letterboxed = dvdread_getbits(&state, 1);
> va->film_mode = dvdread_getbits(&state, 1);
> 
> The first two CC bits and the last film bit agree with the doc I found, but the resolution and letterboxed bits don't. See http://dvd.sourceforge.net/dvdinfo/ifo.html
> 
> I have no idea which is correct, and have ~zero access to any DVDs to investigate. If someone knows which is right, I'm happy to submit a patch to libdvdread or to dvdauthor.
> 
> Thanks!
> _______________________________________________
> libdvdnav-devel mailing list
> libdvdnav-devel at videolan.org
> https://mailman.videolan.org/listinfo/libdvdnav-devel

--
Jean-Baptiste Kempf - President
+33 672 704 734


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/libdvdnav-devel/attachments/20200620/fb66196c/attachment.html>


More information about the libdvdnav-devel mailing list