avutil/imgutils: correctly check for negative SAR components
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 28 Feb 2015 20:57:11 +0000 (21:57 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Mar 2015 00:52:51 +0000 (01:52 +0100)
commit3791436eb58822f3af9c5fb4de744e7523b7046e
tree900080f52df078275e0696c3cd37d61e1f0dc92d
parent61147f58ab6a212fdc1a1e1da68778f8640356a4
avutil/imgutils: correctly check for negative SAR components

These could trigger assert failures previously

Found-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 5705dc527687fd84d94c934169b6bd753459744f)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/imgutils.c