avformat/hlsenc: fix duration wrong when no pkt duration
authorSteven Liu <lq@chinaffmpeg.org>
Tue, 14 Mar 2017 23:37:11 +0000 (07:37 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Tue, 14 Mar 2017 23:37:11 +0000 (07:37 +0800)
commite90ad882819cc46add0ea5ad2cef81490cef96c4
tree0891a7a6d8222d43be96fa329af1f45ea4b2656b
parent55eab1733b9e730ceac33edce9aab56c17ea87b2
avformat/hlsenc: fix duration wrong when no pkt duration

when cannot get pkt duration, hlsenc segments duration will
be set to 0, this patch can fix it.

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c