AVClass is already initialized in avformat_get_context_defaults.
Unified · Split
| @@ -86,6 +86,5 @@ AVFormatContext *avformat_alloc_context(void) · 85 unmodified lines | |||
| 86 | ic = av_malloc(sizeof(AVFormatContext)); | 86 | ic = av_malloc(sizeof(AVFormatContext)); |
| 87 | if (!ic) return ic; | 87 | if (!ic) return ic; |
| 88 | avformat_get_context_defaults(ic); | 88 | avformat_get_context_defaults(ic); |
| 89 | ic->av_class = &av_format_context_class; | ||
| 90 | return ic; | 89 | return ic; |
| 91 | } | 90 | } |