Commit eeb9242b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '50dbe6b3'

* commit '50dbe6b3':
  mov: fix assigment check

Conflicts:
	libavformat/mov.c

See: af2e5061Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 48579041 50dbe6b3
......@@ -3923,7 +3923,7 @@ static int mov_read_header(AVFormatContext *s)
av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
sc->time_scale*(int64_t)sc->nb_frames_for_fps, sc->duration_for_fps, INT_MAX);
if (st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
if (st->codec->width <= 0 && st->codec->height <= 0) {
if (st->codec->width <= 0 || st->codec->height <= 0) {
st->codec->width = sc->width;
st->codec->height = sc->height;
}
......
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