[FFmpeg-cvslog] avstring: fix compiler warning about freeing const pointers
Michael Niedermayer
git at videolan.org
Sat Nov 3 20:26:19 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 3 20:10:30 2012 +0100| [ab796ded757e616cb9167c0a15d70903b86e00f9] | committer: Michael Niedermayer
avstring: fix compiler warning about freeing const pointers
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab796ded757e616cb9167c0a15d70903b86e00f9
---
libavutil/avstring.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavutil/avstring.c b/libavutil/avstring.c
index 73ab7aa..802d0f8 100644
--- a/libavutil/avstring.c
+++ b/libavutil/avstring.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list