@@ -2715,7 +2715,8 @@ static void update_stream_timings(AVFormatContext *ic)
if (duration != INT64_MIN && duration > 0 && ic->duration == AV_NOPTS_VALUE) {
ic->duration = duration;
}
- if (ic->pb && (filesize = avio_size(ic->pb)) > 0 && ic->duration > 0) {
+ if (ic->pb && (filesize = avio_size(ic->pb)) > 0 && ic->duration > 0
+ && strcmp(ic->iformat->name, "hls") && strcmp(ic->iformat->name, "dash")) {
/* compute the bitrate */
double bitrate = (double) filesize * 8.0 * AV_TIME_BASE /
(double) ic->duration;
Signed-off-by: Dongwon Kim <dongwon.kim@sk.com> --- libavformat/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)