avstring: fix compiler warning about freeing const pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-11-03 20:10:30 +01:00
parent 73180ecd0a
commit ab796ded75
1 changed files with 2 additions and 1 deletions

View File

@ -252,7 +252,8 @@ int main(void)
};
for (i=0; i < FF_ARRAY_ELEMS(strings); i++) {
const char *p = strings[i], *q;
const char *p = strings[i];
char *q;
printf("|%s|", p);
q = av_get_token(&p, ":");
printf(" -> |%s|", q);