Commit 8b53d132 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMarton Balint <cus@passwd.hu>
Reviewed-by: 's avatarJames Almer <jamrial@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 7c201e42
...@@ -2590,7 +2590,7 @@ static int64_t mxf_timestamp_to_int64(uint64_t timestamp) ...@@ -2590,7 +2590,7 @@ static int64_t mxf_timestamp_to_int64(uint64_t timestamp)
#define SET_TS_METADATA(pb, name, var, str) do { \ #define SET_TS_METADATA(pb, name, var, str) do { \
var = avio_rb64(pb); \ 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; \ return ret; \
} while (0) } while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment