mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
mov: Skip computing SAR from invalid display matrix elements
This commit is contained in:
parent
3e16d1c8a6
commit
9afde28093
@ -4620,7 +4620,7 @@ static int mov_read_tkhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
disp_transform[i] = hypot(sc->display_matrix[0 + i],
|
||||
sc->display_matrix[3 + i]);
|
||||
|
||||
if (disp_transform[0] > 0 && disp_transform[1] > 0 &&
|
||||
if (disp_transform[0] > 1 && disp_transform[1] > 1 &&
|
||||
disp_transform[0] < (1<<24) && disp_transform[1] < (1<<24) &&
|
||||
fabs((disp_transform[0] / disp_transform[1]) - 1.0) > 0.01)
|
||||
st->sample_aspect_ratio = av_d2q(
|
||||
|
Loading…
Reference in New Issue
Block a user