Displaying 1 result from an estimated 1 matches for "dirac_info".
2008 Nov 04
1
[PATCH] liboggz: Update Dirac granulepos definition
...auto.c (revision 3759)
+++ liboggz/oggz_auto.c (working copy)
@@ -358,31 +358,26 @@
static int
auto_dirac (OGGZ * oggz, long serialno, unsigned char * data, long length, void * user_data)
{
- char keyframe_granule_shift = 32;
- int keyframe_shift;
+ int granule_shift = 22; /* not a typo */
dirac_info *info;
info = malloc(sizeof(dirac_info));
dirac_parse_info(info, data, length);
- /*
- FIXME: where is this in Ogg Dirac?
- keyframe_granule_shift = (char) ((header[40] & 0x03) << 3);
- keyframe_granule_shift |= (header[41] & 0xe0) >> 5;
- */
- keyframe_shift...