test: Correct the API return type of {h264,h265,av1}bitwriter

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6354>
This commit is contained in:
He Junyan 2024-03-13 17:19:26 +08:00
parent 94dfef68e1
commit a953dc3b1a
3 changed files with 7 additions and 7 deletions

View file

@ -279,7 +279,7 @@ static const GstAV1MetadataOBU hdr_cll = {
GST_START_TEST (test_av1_bitwriter_sequence_and_frame_hdr)
{
GstAV1ParserResult res;
gboolean ret;
GstAV1BitWriterResult ret;
guint size;
guint i;
GstAV1Parser *const parser = gst_av1_parser_new ();
@ -445,7 +445,7 @@ GST_START_TEST (test_av1_bitwriter_sequence_and_frame_hdr)
res = gst_av1_parser_parse_temporal_delimiter_obu (parser, &obu);
assert_equals_int (res, GST_AV1_PARSER_OK);
ret = gst_av1_parser_reference_frame_update (parser, &frame_header);
res = gst_av1_parser_reference_frame_update (parser, &frame_header);
assert_equals_int (res, GST_AV1_PARSER_OK);
/* Inter frame */
@ -538,7 +538,7 @@ GST_START_TEST (test_av1_bitwriter_sequence_and_frame_hdr)
CHECK_FIELD (global_motion_params.gm_type[i]);
#undef CHECK_FIELD
ret = gst_av1_parser_reference_frame_update (parser, &frame_header);
res = gst_av1_parser_reference_frame_update (parser, &frame_header);
assert_equals_int (res, GST_AV1_PARSER_OK);
/* Append a TD */
@ -583,7 +583,7 @@ GST_END_TEST;
GST_START_TEST (test_av1_bitwriter_metadata)
{
GstAV1ParserResult res;
gboolean ret;
GstAV1BitWriterResult ret;
guint size;
guint i;
GstAV1Parser *const parser = gst_av1_parser_new ();

View file

@ -163,7 +163,7 @@ static const GstH264SliceHdr slice_hdr = {
GST_START_TEST (test_h264_bitwriter_sps_pps_slice_hdr)
{
GstH264ParserResult res;
gboolean ret;
GstH264BitWriterResult ret;
GstH264NalUnit nalu;
GstH264NalParser *const parser = gst_h264_nal_parser_new ();
GstH264SPS sps_parsed;
@ -383,7 +383,7 @@ GST_START_TEST (test_h264_bitwriter_sei)
GstH264ParserResult res;
GstH264NalUnit nalu;
GstH264SEIMessage sei_msg = { 0, };
gboolean ret;
GstH264BitWriterResult ret;
GstH264SPS sps_parsed;
GstH264HRDParams *hrd_param = &sps_parsed.vui_parameters.nal_hrd_parameters;
GstH264NalParser *const parser = gst_h264_nal_parser_new ();

View file

@ -504,7 +504,7 @@ static const GstH265SliceHdr slice_hdr = {
GST_START_TEST (test_h265_bitwriter_vps_sps_pps_slice_hdr)
{
GstH265ParserResult res;
gboolean ret;
GstH265BitWriterResult ret;
GstH265NalUnit nalu;
GstH265Parser *const parser = gst_h265_parser_new ();
GstH265VPS vps_parsed;