mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/mov: simplify pasp value before setting SAR
This avoids a 65536:65536 SAR Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fc35df8931
commit
ed91c8651a
|
@ -749,8 +749,8 @@ static int mov_read_pasp(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||||
st->sample_aspect_ratio.num, st->sample_aspect_ratio.den,
|
st->sample_aspect_ratio.num, st->sample_aspect_ratio.den,
|
||||||
num, den);
|
num, den);
|
||||||
} else if (den != 0) {
|
} else if (den != 0) {
|
||||||
st->sample_aspect_ratio.num = num;
|
av_reduce(&st->sample_aspect_ratio.num, &st->sample_aspect_ratio.den,
|
||||||
st->sample_aspect_ratio.den = den;
|
num, den, 32767);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue