Merge commit '7f8d41eb097e8d4223c9caf97dd332a2fdb29d52'
* commit '7f8d41eb097e8d4223c9caf97dd332a2fdb29d52':
mov: Don't use a negative duration for setting other fields
Conflicts:
libavformat/mov.c
See: 87d073eacc
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
7f20440b4c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user