#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
+
+#include "libavutil/internal.h"
#include "libavutil/opt.h"
/**
* Options definition for AVFormatContext.
*/
+FF_DISABLE_DEPRECATION_WARNINGS
#include "options_table.h"
+FF_ENABLE_DEPRECATION_WARNINGS
static const char* format_to_name(void* ptr)
{
AVOutputFormat *ofmt = NULL;
if (!prev)
- return &ffio_url_class;
+ return &ff_avio_class;
while ((ifmt = av_iformat_next(ifmt)))
if (ifmt->priv_class == prev)
ic = av_malloc(sizeof(AVFormatContext));
if (!ic) return ic;
avformat_get_context_defaults(ic);
- ic->offset = AV_NOPTS_VALUE;
ic->internal = av_mallocz(sizeof(*ic->internal));
if (!ic->internal) {
avformat_free_context(ic);
return NULL;
}
+ ic->internal->offset = AV_NOPTS_VALUE;
return ic;
}