Commited in SoC by Bobby Bingham on 2007-07-14 20:13:57 Originally committed as revision 11989 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfilter.c (1 of 1 file). Show all
Unified · Split
| @@ -322,7 +322,7 @@ AVFilterContext *avfilter_create(AVFilter *filter, char *inst_name) · 321 unmodified lines | |||
| 322 | ret->av_class = av_mallocz(sizeof(AVClass)); | 322 | ret->av_class = av_mallocz(sizeof(AVClass)); |
| 323 | ret->av_class->item_name = filter_name; | 323 | ret->av_class->item_name = filter_name; |
| 324 | ret->filter = filter; | 324 | ret->filter = filter; |
| 325 | ret->name = inst_name ? strdup(inst_name) : NULL; | 325 | ret->name = inst_name ? av_strdup(inst_name) : NULL; |
| 326 | ret->inputs = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->inputs)); | 326 | ret->inputs = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->inputs)); |
| 327 | ret->outputs = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->outputs)); | 327 | ret->outputs = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->outputs)); |
| 328 | ret->priv = av_mallocz(filter->priv_size); | 328 | ret->priv = av_mallocz(filter->priv_size); |
| @@ -348,7 +348,7 @@ void avfilter_destroy(AVFilterContext *filter) · 19 unmodified lines | |||
| 348 | av_free(filter->outputs[i]); | 348 | av_free(filter->outputs[i]); |
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | free (filter->name); | 351 | av_free(filter->name); |
| 352 | av_free(filter->inputs); | 352 | av_free(filter->inputs); |
| 353 | av_free(filter->outputs); | 353 | av_free(filter->outputs); |
| 354 | av_free(filter->priv); | 354 | av_free(filter->priv); |