Commit 7f20440b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '7f8d41eb'

* commit '7f8d41eb':
  mov: Don't use a negative duration for setting other fields

Conflicts:
	libavformat/mov.c

See: 87d073eaMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 5d12ec8f 7f8d41eb
...@@ -3396,7 +3396,7 @@ static int mov_read_header(AVFormatContext *s) ...@@ -3396,7 +3396,7 @@ static int mov_read_header(AVFormatContext *s)
for (i = 0; i < s->nb_streams; i++) { for (i = 0; i < s->nb_streams; i++) {
AVStream *st = s->streams[i]; AVStream *st = s->streams[i];
MOVStreamContext *sc = st->priv_data; 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; st->codec->bit_rate = sc->data_size * 8 * sc->time_scale / st->duration;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment