diff --git a/libavformat/mov.c b/libavformat/mov.c index 424b8adf30..abeeaaed1f 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3396,7 +3396,7 @@ static int mov_read_header(AVFormatContext *s) for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; MOVStreamContext *sc = st->priv_data; - if (st->duration) + if (st->duration > 0) st->codec->bit_rate = sc->data_size * 8 * sc->time_scale / st->duration; } }