OSDN Git Service

mxfdec: Fix CID 732262
authorTomas Härdin <tomas.hardin@codemill.se>
Wed, 24 Oct 2012 14:50:26 +0000 (16:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Oct 2012 15:44:35 +0000 (17:44 +0200)
commit187630b2449f1eae1096f81f31bab7d81bed3cf1
tree404bff78d652a19266d3b7ccdcd8186c7dda3729
parent55c77a0ca3ce703328c1f28189e7f252ba6eef49
mxfdec: Fix CID 732262

Coverity thinks ofs can end up 15, thus writing past the end of layout[]. This
is incorrect since it's always incremented by 2. Checking ofs <= 14 makes
Coverity happy and doesn't hurt.

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