From fa2b697389f50dd4d96f76379b9359e137b63bca Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Sat, 25 Dec 2021 13:00:17 +0100 Subject: [PATCH] tests: jpegparse: Mark data as static. Part-of: --- .../tests/check/elements/jpegparse.c | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/subprojects/gst-plugins-bad/tests/check/elements/jpegparse.c b/subprojects/gst-plugins-bad/tests/check/elements/jpegparse.c index ab97f86..acda1d2 100644 --- a/subprojects/gst-plugins-bad/tests/check/elements/jpegparse.c +++ b/subprojects/gst-plugins-bad/tests/check/elements/jpegparse.c @@ -27,25 +27,25 @@ /* This test doesn't use actual JPEG data, but some fake data that we know will trigger certain paths in jpegparse. */ -guint8 test_data_garbage[] = { 0x00, 0x01, 0xff, 0x32, 0x00, 0xff }; -guint8 test_data_short_frame[] = { 0xff, 0xd8, 0xff, 0xd9 }; +static guint8 test_data_garbage[] = { 0x00, 0x01, 0xff, 0x32, 0x00, 0xff }; +static guint8 test_data_short_frame[] = { 0xff, 0xd8, 0xff, 0xd9 }; -guint8 test_data_normal_frame[] = { 0xff, 0xd8, 0xff, 0x12, 0x00, 0x03, 0x33, - 0xff, 0xd9 +static guint8 test_data_normal_frame[] = { 0xff, 0xd8, 0xff, 0x12, 0x00, 0x03, + 0x33, 0xff, 0xd9 }; -guint8 test_data_entropy[] = { 0xff, 0xd8, 0xff, 0xda, 0x00, 0x04, 0x22, 0x33, - 0x44, 0xff, 0x00, 0x55, 0xff, 0x04, 0x00, 0x04, 0x22, 0x33, 0xff, 0xd9 +static guint8 test_data_entropy[] = { 0xff, 0xd8, 0xff, 0xda, 0x00, 0x04, 0x22, + 0x33, 0x44, 0xff, 0x00, 0x55, 0xff, 0x04, 0x00, 0x04, 0x22, 0x33, 0xff, 0xd9 }; -guint8 test_data_ff[] = { 0xff, 0xff }; +static guint8 test_data_ff[] = { 0xff, 0xff }; -guint8 test_data_extra_ff[] = { 0xff, 0xd8, 0xff, 0xff, 0xff, 0x12, 0x00, 0x03, - 0x33, 0xff, 0xff, 0xff, 0xd9 +static guint8 test_data_extra_ff[] = { 0xff, 0xd8, 0xff, 0xff, 0xff, 0x12, 0x00, + 0x03, 0x33, 0xff, 0xff, 0xff, 0xd9 }; -guint8 test_data_soi[] = { 0xff, 0xd8 }; +static guint8 test_data_soi[] = { 0xff, 0xd8 }; -guint8 test_data_app1_exif[] = { +static guint8 test_data_app1_exif[] = { 0xff, 0xe1, 0x00, 0xd2, /* length = 210 */ 0x45, 0x78, 0x69, 0x66, 0x00, /* Exif */ @@ -129,14 +129,14 @@ guint8 test_data_app1_exif[] = { 0x22, 0x20, }; -guint8 test_data_comment[] = { +static guint8 test_data_comment[] = { 0xff, 0xfe, 0x00, 0x08, /* size */ /* xxxxx */ 0x78, 0x78, 0x78, 0x78, 0x78, 0x00, }; -guint8 test_data_sof0[] = { +static guint8 test_data_sof0[] = { 0xff, 0xc0, /* baseline dct-based */ 0x00, 0x11, /* size */ 0x08, /* precision */ @@ -148,7 +148,7 @@ guint8 test_data_sof0[] = { 0x03, 0x11, 0x01, /* component 3 */ }; -guint8 test_data_eoi[] = { 0xff, 0xd9 }; +static guint8 test_data_eoi[] = { 0xff, 0xd9 }; static GList * _make_buffers_in (GList * buffer_in, guint8 * test_data, gsize test_data_size) -- 2.7.4