| 79 | } |
| 80 | |
| 81 | AVFormatContext *avformat_alloc_context(void) |
| 82 | { |
| 83 | AVFormatContext *ic; |
| 84 | ic = av_malloc(sizeof(AVFormatContext)); |
| 85 | if (!ic) return ic; |
| 86 | avformat_get_context_defaults(ic); |
| 87 | ic->av_class = &av_format_context_class; |
| 88 | return ic; |
| 89 | } |
| 90 | |
| 91 | #if LIBAVFORMAT_VERSION_MAJOR < 53 |
| 92 | AVFormatContext *av_alloc_format_context(void) |
no test coverage detected