aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2015-01-21 09:36:53 -0600
committerMartin Storsjö <martin@martin.st>2015-01-22 08:49:39 +0200
commit1d8aa23794cc63e9517d5055a2d48040b843b1cf (patch)
treef69ae1adc345271d1ba303b61d330b848648f754
parentda9bffaf08a1173451da1b4e1ae50881e7093642 (diff)
downloadffmpeg-1d8aa23794cc63e9517d5055a2d48040b843b1cf.tar.gz
dashenc: Fix format string generation
Previously this always used the "lld" format for all parameters, not only time parameters. Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/dashenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 1432fc32fd..25fed12934 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];