diff options
Diffstat (limited to 'libavformat/options.c')
-rw-r--r-- | libavformat/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/options.c b/libavformat/options.c index 504404312c..22b922f89a 100644 --- a/libavformat/options.c +++ b/libavformat/options.c @@ -110,13 +110,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; } |