avformat/mxfdec: fix error check in macro

Fixes #6750.
pull/304/head^2
Paul B Mahol 6 years ago
parent 8c9fff6183
commit e5a0013c4a
  1. 2
      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 ((ret = avpriv_dict_set_timestamp(&s->metadata, name, mxf_timestamp_to_int64(var))) < 0) \
return ret; \
} while (0)

Loading…
Cancel
Save