Commit ed91c865 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mov: simplify pasp value before setting SAR

This avoids a 65536:65536 SAR
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fc35df89
...@@ -749,8 +749,8 @@ static int mov_read_pasp(MOVContext *c, AVIOContext *pb, MOVAtom atom) ...@@ -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;
} }
......
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