mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
7c201e420a
commit
8b53d1322f
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue