[FFmpeg-cvslog] avformat/mxfdec: Do not process zero modified_date timestamp.

Michael Niedermayer git at videolan.org
Sat Dec 22 23:34:14 EET 2018


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Dec 22 19:44:29 2018 +0100| [8b53d1322fefa8c88c5f22645f6c4777a549cad5] | committer: 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: Marton Balint <cus at passwd.hu>
Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b53d1322fefa8c88c5f22645f6c4777a549cad5
---

 libavformat/mxfdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index f5e3a736e5..6e96107498 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)
 



More information about the ffmpeg-cvslog mailing list