Mercurial > libdvdread4.hg
comparison dvdread/ifo_types.h @ 64:70c34d162e6e src
Replaces the hard-coded values
The parental management structure has ratings levels. The size
of the bit mask is constant but magic values were being used
instead of named constants. This commit changes them to named
constants. This is based on a patch submitted by Frederic Marchal,
fmarchal at perso dot be. Thanks for this tidy cleanup.
author | erik |
---|---|
date | Sun, 30 Jan 2011 23:44:13 +0000 |
parents | c743d79f187b |
children | 8e12b8e01713 |
comparison
equal
deleted
inserted
replaced
63:46c05a214511 | 64:70c34d162e6e |
---|---|
473 | 473 |
474 /** | 474 /** |
475 * Parental Management Information Unit Table. | 475 * Parental Management Information Unit Table. |
476 * Level 1 (US: G), ..., 7 (US: NC-17), 8 | 476 * Level 1 (US: G), ..., 7 (US: NC-17), 8 |
477 */ | 477 */ |
478 typedef uint16_t pf_level_t[8]; | 478 #define PTL_MAIT_NUM_LEVEL 8 |
479 typedef uint16_t pf_level_t[PTL_MAIT_NUM_LEVEL]; | |
479 | 480 |
480 /** | 481 /** |
481 * Parental Management Information Unit Table. | 482 * Parental Management Information Unit Table. |
482 */ | 483 */ |
483 typedef struct { | 484 typedef struct { |