You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avstring-test: Mark pointer passed to av_free() as non-const
libavutil/avstring.c:278:9: warning: passing argument 1 of ‘av_free’ discards ‘const’ qualifier from pointer target type
This commit is contained in:
@@ -270,7 +270,8 @@ int main(void)
|
|||||||
|
|
||||||
printf("Testing av_get_token()\n");
|
printf("Testing av_get_token()\n");
|
||||||
for (i = 0; i < FF_ARRAY_ELEMS(strings); i++) {
|
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);
|
printf("|%s|", p);
|
||||||
q = av_get_token(&p, ":");
|
q = av_get_token(&p, ":");
|
||||||
printf(" -> |%s|", q);
|
printf(" -> |%s|", q);
|
||||||
|
Reference in New Issue
Block a user