mxfdec: Fix the error handling for when strftime fails

The str variable is a char ** here.

Signed-off-by: Martin Storsjö <martin@martin.st>
pull/124/merge
Martin Storsjö 10 years ago
parent 5f5b78aca3
commit 6448f15af0
  1. 2
      libavformat/mxfdec.c

@ -1736,7 +1736,7 @@ static int mxf_timestamp_to_str(uint64_t timestamp, char **str)
if (!*str)
return AVERROR(ENOMEM);
if (!strftime(*str, 32, "%Y-%m-%d %H:%M:%S", &time))
str[0] = '\0';
(*str)[0] = '\0';
return 0;
}

Loading…
Cancel
Save