summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/common.h2
-rw-r--r--libhb/hb.c2
-rw-r--r--libhb/muxmp4.c2
-rw-r--r--libhb/muxogm.c2
-rw-r--r--libhb/scan.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 20de051f4..e78f71bd8 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -160,7 +160,7 @@ struct hb_job_s
int h264_13;
int h264_level;
int crf;
- const char *x264opts;
+ char *x264opts;
int areBframes;
/* Audio tracks:
diff --git a/libhb/hb.c b/libhb/hb.c
index d1eac132f..e9d7aa129 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -324,7 +324,7 @@ void hb_get_preview( hb_handle_t * h, hb_title_t * title, int picture,
memset( filename, 0, 1024 );
hb_get_tempory_filename( h, filename, "%x%d",
- (int) title, picture );
+ (intptr_t) title, picture );
file = fopen( filename, "r" );
if( !file )
diff --git a/libhb/muxmp4.c b/libhb/muxmp4.c
index a3c7135ac..8a1ee6b2d 100644
--- a/libhb/muxmp4.c
+++ b/libhb/muxmp4.c
@@ -154,7 +154,7 @@ static int MP4Init( hb_mux_object_t * m )
/* end of transformation matrix */
/* firstAudioTrack will be used to reference the first audio track when we add a chapter track */
- MP4TrackId firstAudioTrack;
+ MP4TrackId firstAudioTrack = 0;
/* add the audio tracks */
for( i = 0; i < hb_list_count( title->list_audio ); i++ )
diff --git a/libhb/muxogm.c b/libhb/muxogm.c
index 656c8e780..4a008ff78 100644
--- a/libhb/muxogm.c
+++ b/libhb/muxogm.c
@@ -205,7 +205,7 @@ static int OGMInit( hb_mux_object_t * m )
SetDWLE( &h.header.audio.i_avgbytespersec,
job->abitrate / 8 );
- op.packet = (char*) &h;
+ op.packet = (unsigned char*) &h;
op.bytes = sizeof( ogg_stream_header_t );
op.b_o_s = 1;
op.e_o_s = 0;
diff --git a/libhb/scan.c b/libhb/scan.c
index 4f28bac6d..763bc3a1c 100644
--- a/libhb/scan.c
+++ b/libhb/scan.c
@@ -330,7 +330,7 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title )
buf_raw = hb_list_item( list_raw, 0 );
hb_get_tempory_filename( data->h, filename, "%x%d",
- (int) title, i );
+ (intptr_t)title, i );
file_preview = fopen( filename, "w" );
if( file_preview )