hb_audio_t * audio = w->audio;
int i, j, k;
int64_t pts, pos;
+ uint64_t upts, upos;
int num_blocks;
/* Get a frame header if don't have one yet */
}
/* Get the whole frame */
- hb_list_getbytes( pv->list, pv->frame, pv->size, &pts, &pos );
+ hb_list_getbytes( pv->list, pv->frame, pv->size, &upts, &upos );
+ pts = (int64_t)upts;
+ pos = (int64_t)upos;
+
if ( pts != pv->last_buf_pts )
{
pv->last_buf_pts = pts;
#include "dvd.h"
#include "dvdread/ifo_read.h"
+#include "dvdread/ifo_print.h"
#include "dvdread/nav_read.h"
static hb_dvd_t * hb_dvdread_init( char * path );
#include "dvdnav/dvdnav.h"
#include "dvdread/ifo_read.h"
+#include "dvdread/ifo_print.h"
#include "dvdread/nav_read.h"
#define DVD_READ_CACHE 1
hb_title_t * hb_stream_title_scan( hb_stream_t *);
int hb_stream_read( hb_stream_t *, hb_buffer_t *);
int hb_stream_seek( hb_stream_t *, float );
+int hb_stream_seek_chapter( hb_stream_t *, int );
+int hb_stream_chapter( hb_stream_t * );
+
void * hb_ffmpeg_context( int codec_param );
void * hb_ffmpeg_avstream( int codec_param );
}
// based off of mov_read_esds from mov.c in ffmpeg's libavformat
-static long ReadESDSDescExt(void* descExt, UInt8 **buffer, int *size, int versionFlags)
+static long ReadESDSDescExt(void* descExt, UInt8 **buffer, UInt32 *size, int versionFlags)
{
UInt8 *esds = (UInt8 *) descExt;
int tag, len;
// get available bitrates
AudioValueRange *bitrates;
- ssize_t bitrateCounts, n;
+ ssize_t bitrateCounts;
err = AudioConverterGetPropertyInfo( pv->converter, kAudioConverterApplicableEncodeBitRates,
&tmpsiz, NULL);
bitrates = malloc( tmpsiz );
&tmp, w->config->aac.bytes );
// CoreAudio returns a complete ESDS, but we only need
// the DecoderSpecific info.
- UInt8* buffer;
+ UInt8* buffer = NULL;
ReadESDSDescExt(w->config->aac.bytes, &buffer, &tmpsiz, 0);
w->config->aac.length = tmpsiz;
memmove( w->config->aac.bytes, buffer,
}
int64_t sum_dur = 0;
- hb_chapter_t *chapter;
+ hb_chapter_t *chapter = NULL;
int i;
for ( i = 0; i < chapter_num; ++i)
{
hb_update_t * data = (hb_update_t *) _data;
- char* p;
char* const url = HB_PROJECT_URL_APPCAST;
char* const urlz = url + strlen( HB_PROJECT_URL_APPCAST ); /* marks null-term */
char url_host[64];
static uint16_t hb_parse_character( hb_csv_file_t * file )
{
int byte;
- uint16_t c;
+ uint16_t c = 0;
int need_char = 1;
if( file == NULL )