avformat/mxfdec: do not allow more partitions than INT_MAX/2
authorMarton Balint <cus@passwd.hu>
Thu, 8 Mar 2018 23:46:06 +0000 (00:46 +0100)
committerMarton Balint <cus@passwd.hu>
Fri, 9 Mar 2018 19:37:49 +0000 (20:37 +0100)
commitcf5ffe0183947112ac50be81942d8be610aa987c
tree3c6f850b5218fb404b7209481a78b07bf208488d
parent90756e67a0a1de762d27c2fe01a30ac8434a3631
avformat/mxfdec: do not allow more partitions than INT_MAX/2

Some math (e.g: partition binary search) overflows if we have that many
parititions.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/mxfdec.c