summaryrefslogtreecommitdiff
path: root/libavformat/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/options.c')
-rw-r--r--libavformat/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/options.c b/libavformat/options.c
index ad47004651..227c36f95f 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -101,13 +101,13 @@ AVFormatContext *avformat_alloc_context(void)
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;
}