On Wed, 10 Dec 2014, Vittorio Giovara wrote:
Bug-Id: CID 1254944 --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 07dd673..683ec0b 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -463,7 +463,7 @@ static int write_manifest(AVFormatContext *s, int final) avio_printf(out, "\tavailabilityStartTime=\"%s\"\n", c->availability_start_time); if (c->window_size && c->use_template) { avio_printf(out, "\ttimeShiftBufferDepth=\""); - write_time(out, c->last_duration * c->window_size); + write_time(out, (int64_t) c->last_duration * c->window_size); avio_printf(out, "\"\n"); } } -- 1.9.3 (Apple Git-50)
I think it would make more sense to change the type of last_duration to int64_t. For this case it's not too likely to happen, but what indeed seems to be an oversight is that the total_duration field also isn't an int64_t, which it definitely should be. I'll send a different patch for it.
// Martin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
