summaryrefslogtreecommitdiff
path: root/libavformat/dashenc.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2015-01-21 09:36:53 -0600
committerMichael Niedermayer <michaelni@gmx.at>2015-01-22 11:55:21 +0100
commit89684883af44bfa04560ce0864d8633d915c2480 (patch)
tree161c2708537f3cd8193ec0865897c39ead9adae6 /libavformat/dashenc.c
parent6c559a0a9d3e8eb10e2b92b6793e11038ab86fcf (diff)
avformat/dashenc: fix format string generation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r--libavformat/dashenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index e3e68c432d..d7b2583b0c 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -282,7 +282,7 @@ static DASHTmplId dash_read_tmpl_id(const char *identifier, char *format_tag,
// next parse the dash format-tag and generate a c-string format tag
// (next_ptr now points at the first '%' at the beginning of the format-tag)
if (id_type != DASH_TMPL_ID_UNDEFINED) {
- const char *number_format = DASH_TMPL_ID_TIME ? "lld" : "d";
+ const char *number_format = (id_type == DASH_TMPL_ID_TIME) ? "lld" : "d";
if (next_ptr[0] == '$') { // no dash format-tag
snprintf(format_tag, format_tag_size, "%%%s", number_format);
*ptr = &next_ptr[1];