ffmpeg | branch: master | Rodger Combs <rodger.co...@gmail.com> | Wed Jan 21 09:36:53 2015 -0600| [89684883af44bfa04560ce0864d8633d915c2480] | committer: Michael Niedermayer
avformat/dashenc: fix format string generation Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89684883af44bfa04560ce0864d8633d915c2480 --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index e3e68c4..d7b2583 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]; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog