[FFmpeg-soc] [soc]: r5190 - in concat/libavformat: pls.c xspf.c
gkovacs
subversion at mplayerhq.hu
Thu Aug 20 13:37:26 CEST 2009
Author: gkovacs
Date: Thu Aug 20 13:37:26 2009
New Revision: 5190
Log:
make fixed template-match strings const
Modified:
concat/libavformat/pls.c
concat/libavformat/xspf.c
Modified: concat/libavformat/pls.c
==============================================================================
--- concat/libavformat/pls.c Thu Aug 20 13:33:59 2009 (r5189)
+++ concat/libavformat/pls.c Thu Aug 20 13:37:26 2009 (r5190)
@@ -48,7 +48,7 @@ static int pls_list_files(ByteIOContext
char **flist;
char buf[1024];
char s[5] = {0};
- char t[] = "\nFile";
+ const char t[] = "\nFile";
flist = NULL;
state = buflen = i = j = 0;
while ((c = url_fgetc(b))) {
Modified: concat/libavformat/xspf.c
==============================================================================
--- concat/libavformat/xspf.c Thu Aug 20 13:33:59 2009 (r5189)
+++ concat/libavformat/xspf.c Thu Aug 20 13:37:26 2009 (r5190)
@@ -38,9 +38,9 @@ static int xspf_probe(AVProbeData *p)
char fxml;
char ftag;
unsigned char c;
- char t[] = "<?xml";
+ const char t[] = "<?xml";
char s[5] = {0};
- char v[] = "<playlist";
+ const char v[] = "<playlist";
char u[9] = {0};
fxml = ftag = 0;
len = p->buf_size;
@@ -87,7 +87,7 @@ static int xspf_list_files(ByteIOContext
char **flist;
char buf[1024];
char s[10] = {0};
- char t[] = "<location>";
+ const char t[] = "<location>";
flist = NULL;
state = buflen = i = j = 0;
while ((c = url_fgetc(b))) {
More information about the FFmpeg-soc
mailing list