summaryrefslogtreecommitdiff
path: root/libavformat/options.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-18 02:38:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-18 02:46:07 +0100
commit9943c5a42bdf8412f60e8a33489d6f2a8b1b9d61 (patch)
treea1dd73d724ac6e4e34cb818f9bd3d7b309be347c /libavformat/options.c
parentafbaa9a737b3546c12fdf328016cc1e587d65dc9 (diff)
parent9257692ac15eff7b07540c1f61cebde0d8823fbd (diff)
downloadffmpeg-9943c5a42bdf8412f60e8a33489d6f2a8b1b9d61.tar.gz
Merge commit '9257692ac15eff7b07540c1f61cebde0d8823fbd'
* commit '9257692ac15eff7b07540c1f61cebde0d8823fbd': lavf: Only initialize s->offset once when using avoid_negative_ts make_zero Conflicts: libavformat/mux.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/options.c')
-rw-r--r--libavformat/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/options.c b/libavformat/options.c
index e0d6df6fbd..504404312c 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -110,6 +110,7 @@ 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) {