[FFmpeg-cvslog] r14219 - trunk/libavcodec/opt.c
stefano
subversion
Sun Jul 13 23:28:18 CEST 2008
Author: stefano
Date: Sun Jul 13 23:28:17 2008
New Revision: 14219
Log:
Fix the logic to access the location of a string to free when
setting a new value for a string with av_set_string2().
Fix a segmentation fault.
M opt.c
Modified:
trunk/libavcodec/opt.c
Modified: trunk/libavcodec/opt.c
==============================================================================
--- trunk/libavcodec/opt.c (original)
+++ trunk/libavcodec/opt.c Sun Jul 13 23:28:17 2008
@@ -196,7 +196,7 @@ const AVOption *av_set_string2(void *obj
}
if(alloc){
- av_free((void*)(((uint8_t*)obj) + o->offset));
+ av_free(*(void**)(((uint8_t*)obj) + o->offset));
val= av_strdup(val);
}
More information about the ffmpeg-cvslog
mailing list