search for: scan_format

Displaying 2 results from an estimated 2 matches for "scan_format".

2008 Nov 04
3
[PATCH] liboggz: Fix Dirac bitstream parsing
...bs ); /* chroma_format */ } + if (dirac_bool( &bs )) { - info->interlaced = 0; - if (dirac_bool( &bs )) { /* interlaced */ - info->interlaced = 1; - info->top_field_first = dirac_bool( &bs ); /* top_field_first */ + int i = dirac_uint( &bs ); /* scan_format */ + if (i < 2) { + info->interlaced = i; + info->top_field_first = dirac_top_field_first[video_format]; } }
2008 Nov 04
0
[PATCH] liboggz: Fix Dirac bitstream parsing
...); /* chroma_format */ } - if (dirac_bool( &bs )) { - info->interlaced = 0; - if (dirac_bool( &bs )) { /* interlaced */ - info->interlaced = 1; - info->top_field_first = dirac_bool( &bs ); /* top_field_first */ + + if (dirac_bool( &bs )) { /* custom_scan_format_flag */ + int scan_format = dirac_uint( &bs ); /* scan_format */ + if (scan_format < 2) { + info->interlaced = scan_format; + } else { /* other scan_format values are reserved */ + info->interlaced = 0; } + } else { /* no custom scan_format, use the preset valu...