summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-12-22 19:44:29 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2018-12-22 22:28:52 +0100
commit8b53d1322fefa8c88c5f22645f6c4777a549cad5 (patch)
treed5b1fac83a86bf7c5a9bec5c6fc3e6ce942a9951
parent7c201e420accacdffa57bf39729c31ad227fab53 (diff)
downloadffmpeg-streaming-8b53d1322fefa8c88c5f22645f6c4777a549cad5.zip
ffmpeg-streaming-8b53d1322fefa8c88c5f22645f6c4777a549cad5.tar.gz
avformat/mxfdec: Do not process zero modified_date timestamp.
This causes windows to fail as the timestamp is outside its supported range Fixes regression & fate Reviewed-by: Marton Balint <cus@passwd.hu> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index f5e3a73..6e96107 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -2590,7 +2590,7 @@ static int64_t mxf_timestamp_to_int64(uint64_t timestamp)
#define SET_TS_METADATA(pb, name, var, str) do { \
var = avio_rb64(pb); \
- if ((ret = avpriv_dict_set_timestamp(&s->metadata, name, mxf_timestamp_to_int64(var))) < 0) \
+ if (var && (ret = avpriv_dict_set_timestamp(&s->metadata, name, mxf_timestamp_to_int64(var))) < 0) \
return ret; \
} while (0)
OpenPOWER on IntegriCloud