tests: mark test input data const
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 2 Nov 2011 12:41:54 +0000 (12:41 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 7 Nov 2011 11:12:44 +0000 (11:12 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=663235

tests/check/libs/mpegvideoparser.c

index 96ca106..e5a2358 100644 (file)
@@ -23,7 +23,7 @@
 #include <gst/codecparsers/gstmpegvideoparser.h>
 
 /* actually seq + gop */
-static guint8 mpeg2_seq[] = {
+static const guint8 mpeg2_seq[] = {
   0x00, 0x00, 0x01, 0xb3, 0x02, 0x00, 0x18, 0x15, 0xff, 0xff, 0xe0, 0x28,
   0x00, 0x00, 0x01, 0xb3, 0x78, 0x04, 0x38, 0x37, 0xff, 0xff, 0xf0, 0x00,
   0x00, 0x00, 0x01, 0xb5, 0x14, 0x8a, 0x00, 0x11, 0x03, 0x71,
@@ -31,7 +31,7 @@ static guint8 mpeg2_seq[] = {
   0x00, 0x00, 0x01, 0x03, 0x00, 0x08, 0x00, 0x00
 };
 
-static guint8 mis_identified_datas[] = {
+static const guint8 mis_identified_datas[] = {
   0x00, 0x00, 0x01, 0x1f, 0x4a, 0xf4, 0xd4, 0xd8, 0x08, 0x23, 0xdd,
   0x7c, 0xd3, 0x75, 0x21, 0x43, 0x85, 0x31, 0x43, 0x04, 0x24, 0x30,
   0x18, 0x43, 0xba, 0x1a, 0x50, 0x60, 0xbb, 0x53, 0x56, 0x80, 0x41,
@@ -157,7 +157,7 @@ GST_START_TEST (test_mis_identified_datas)
 {
   GList *list, *tmp;
   GstMpegVideoTypeOffsetSize *typeoffsz;
-  guint8 *data = mis_identified_datas;
+  const guint8 *data = mis_identified_datas;
 
   list = gst_mpeg_video_parse (mis_identified_datas,
       sizeof (mis_identified_datas), 0);