mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
Fix several build warnings and minor bugs
This commit is contained in:
9
third_party/h264bitstream/h264_stream.c
vendored
9
third_party/h264bitstream/h264_stream.c
vendored
@@ -32,7 +32,8 @@
|
||||
|
||||
FILE* h264_dbgfile = NULL;
|
||||
|
||||
#define printf(...) fprintf((h264_dbgfile == NULL ? stdout : h264_dbgfile), __VA_ARGS__)
|
||||
void fake_printf(int, ...) {}
|
||||
#define printf(...) fake_printf(0, __VA_ARGS__)
|
||||
|
||||
/**
|
||||
Calculate the log base 2 of the argument, rounded up.
|
||||
@@ -554,7 +555,7 @@ void read_pic_parameter_set_rbsp(h264_stream_t* h, bs_t* b)
|
||||
if( 1 ) { have_more_data = more_rbsp_data(h, b); }
|
||||
if( 0 )
|
||||
{
|
||||
have_more_data = pps->transform_8x8_mode_flag | pps->pic_scaling_matrix_present_flag | pps->second_chroma_qp_index_offset != 0;
|
||||
have_more_data = pps->transform_8x8_mode_flag | pps->pic_scaling_matrix_present_flag | (pps->second_chroma_qp_index_offset != 0);
|
||||
}
|
||||
|
||||
if( have_more_data )
|
||||
@@ -1441,7 +1442,7 @@ void write_pic_parameter_set_rbsp(h264_stream_t* h, bs_t* b)
|
||||
if( 0 ) { have_more_data = more_rbsp_data(h, b); }
|
||||
if( 1 )
|
||||
{
|
||||
have_more_data = pps->transform_8x8_mode_flag | pps->pic_scaling_matrix_present_flag | pps->second_chroma_qp_index_offset != 0;
|
||||
have_more_data = pps->transform_8x8_mode_flag | pps->pic_scaling_matrix_present_flag | (pps->second_chroma_qp_index_offset != 0);
|
||||
}
|
||||
|
||||
if( have_more_data )
|
||||
@@ -2328,7 +2329,7 @@ void read_debug_pic_parameter_set_rbsp(h264_stream_t* h, bs_t* b)
|
||||
if( 1 ) { have_more_data = more_rbsp_data(h, b); }
|
||||
if( 0 )
|
||||
{
|
||||
have_more_data = pps->transform_8x8_mode_flag | pps->pic_scaling_matrix_present_flag | pps->second_chroma_qp_index_offset != 0;
|
||||
have_more_data = pps->transform_8x8_mode_flag | pps->pic_scaling_matrix_present_flag | (pps->second_chroma_qp_index_offset != 0);
|
||||
}
|
||||
|
||||
if( have_more_data )
|
||||
|
||||
Reference in New Issue
Block a user