Ticket #2744: options.diff
| File options.diff, 508 bytes (added by , 13 years ago) |
|---|
-
libavcodec/options.c
diff --git a/libavcodec/options.c b/libavcodec/options.c index fb803f3..b7f91cf 100644
a b int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec) 134 134 if(codec->priv_class){ 135 135 *(const AVClass**)s->priv_data = codec->priv_class; 136 136 av_opt_set_defaults(s->priv_data); 137 } 137 } else 138 av_freep(&s->priv_data); 138 139 } 139 140 if (codec && codec->defaults) { 140 141 int ret;
