Skip to content

Commit

Permalink
dashenc: Fix format string generation
Browse files Browse the repository at this point in the history
Previously this always used the "lld" format for all parameters,
not only time parameters.

Signed-off-by: Martin Storsjö <[email protected]>
  • Loading branch information
Rodger Combs authored and mstorsjo committed Jan 22, 2015
1 parent da9bffa commit 1d8aa23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/dashenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1d8aa23

Please sign in to comment.