projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b903a92
)
Fix the logic to access the location of a string to free when setting
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Sun, 13 Jul 2008 21:28:17 +0000
(21:28 +0000)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Sun, 13 Jul 2008 21:28:17 +0000
(21:28 +0000)
a new value for a string with av_set_string2(). Fix a segmentation
fault.
Originally committed as revision 14219 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/opt.c
patch
|
blob
|
history
diff --git
a/libavcodec/opt.c
b/libavcodec/opt.c
index
3e10380
..
acf94ba
100644
(file)
--- a/
libavcodec/opt.c
+++ b/
libavcodec/opt.c
@@
-196,7
+196,7
@@
const AVOption *av_set_string2(void *obj, const char *name, const char *val, int
}
if(alloc){
- av_free(
(void
*)(((uint8_t*)obj) + o->offset));
+ av_free(
*(void*
*)(((uint8_t*)obj) + o->offset));
val= av_strdup(val);
}