forked from FFmpeg/FFmpeg
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
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
num, den);
|
||||
} else if (den != 0) {
|
||||
st->sample_aspect_ratio.num = num;
|
||||
st->sample_aspect_ratio.den = den;
|
||||
av_reduce(&st->sample_aspect_ratio.num, &st->sample_aspect_ratio.den,
|
||||
num, den, 32767);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue