tests: jpegparse: Mark data as static.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 25 Dec 2021 12:00:17 +0000 (13:00 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 20 May 2022 08:51:23 +0000 (08:51 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1473>

subprojects/gst-plugins-bad/tests/check/elements/jpegparse.c

index ab97f86bb0797bdcf594dc533b77279a8c795b10..acda1d28936eda9032bc6a7167639a316759bbe1 100644 (file)
 /* 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)