summaryrefslogtreecommitdiff
path: root/libavformat/oma.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-08-24 17:24:34 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-08-24 17:24:34 +0000
commitaecf157ed0c193b2f871102ccbe2bc39877dfc93 (patch)
treefa040353446aba13568d3d4d398c4fdbc65f269b /libavformat/oma.c
parent7b571fd7a42ebc7fd083665105807193bd54ecc2 (diff)
Mark several libavformat arrays const
Originally committed as revision 14950 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oma.c')
-rw-r--r--libavformat/oma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/oma.c b/libavformat/oma.c
index de632ff27b..161d1a0867 100644
--- a/libavformat/oma.c
+++ b/libavformat/oma.c
@@ -89,7 +89,7 @@ static int oma_read_header(AVFormatContext *s,
if (ret != EA3_HEADER_SIZE)
return -1;
- if (memcmp(buf, (uint8_t[]){'E', 'A', '3'},3) || buf[4] != 0 || buf[5] != EA3_HEADER_SIZE) {
+ if (memcmp(buf, (const uint8_t[]){'E', 'A', '3'},3) || buf[4] != 0 || buf[5] != EA3_HEADER_SIZE) {
av_log(s, AV_LOG_ERROR, "Couldn't find the EA3 header !\n");
return -1;
}
@@ -177,7 +177,7 @@ static int oma_read_packet(AVFormatContext *s, AVPacket *pkt)
static int oma_read_probe(AVProbeData *p)
{
- if (!memcmp(p->buf, (uint8_t[]){'e', 'a', '3', 3, 0},5))
+ if (!memcmp(p->buf, (const uint8_t[]){'e', 'a', '3', 3, 0},5))
return AVPROBE_SCORE_MAX;
else
return 0;