@@ -9,7 +9,7 @@ use lib_ccxr::common::{Codec, Options, StreamMode, StreamType};
99use lib_ccxr:: time:: Timestamp ;
1010use std:: alloc:: { alloc_zeroed, Layout } ;
1111use std:: ffi:: CStr ;
12- use std:: os:: raw:: { c_char, c_int, c_long , c_longlong , c_uchar, c_uint, c_void} ;
12+ use std:: os:: raw:: { c_char, c_int, c_uchar, c_uint, c_void} ;
1313
1414// External C function declarations
1515extern "C" {
@@ -452,12 +452,12 @@ pub unsafe extern "C" fn ccxr_demuxer_open(ctx: *mut ccx_demuxer, file: *const c
452452/// # Safety
453453/// This function is unsafe because it dereferences a raw pointer.
454454#[ no_mangle]
455- pub unsafe extern "C" fn ccxr_demuxer_get_file_size ( ctx : * mut ccx_demuxer ) -> c_longlong {
455+ pub unsafe extern "C" fn ccxr_demuxer_get_file_size ( ctx : * mut ccx_demuxer ) -> i64 {
456456 if ctx. is_null ( ) {
457457 return -1 ;
458458 }
459459 let mut demux_ctx = copy_demuxer_from_c_to_rust ( ctx) ;
460- demux_ctx. get_filesize ( ) as c_longlong
460+ demux_ctx. get_filesize ( ) as i64
461461}
462462
463463// Extern function for ccx_demuxer_print_cfg
@@ -482,7 +482,7 @@ use crate::demuxer::dvdraw::{is_dvdraw_header, parse_dvdraw_with_callbacks, FRAM
482482// External C function declarations for caption processing
483483extern "C" {
484484 fn do_cb ( ctx : * mut lib_cc_decode , cc_block : * mut c_uchar , sub : * mut cc_subtitle ) -> c_int ;
485- fn ccxr_add_current_pts ( ctx : * mut ccx_common_timing_ctx , pts : c_long ) ;
485+ fn ccxr_add_current_pts ( ctx : * mut ccx_common_timing_ctx , pts : i64 ) ;
486486 fn ccxr_set_fts ( ctx : * mut ccx_common_timing_ctx ) -> c_int ;
487487}
488488
@@ -546,7 +546,7 @@ pub unsafe extern "C" fn ccxr_process_dvdraw(
546546 } ,
547547 || {
548548 // Advance timing before each field 1 caption
549- ccxr_add_current_pts ( timing_ctx, FRAME_DURATION_TICKS as c_long ) ;
549+ ccxr_add_current_pts ( timing_ctx, FRAME_DURATION_TICKS ) ;
550550 ccxr_set_fts ( timing_ctx) ;
551551 } ,
552552 ) ;
0 commit comments