ivfparse: Check the data size against IVF_FRAME_HEADER_SIZE
authorHaihao Xiang <haihao.xiang@intel.com>
Wed, 22 May 2019 04:25:38 +0000 (12:25 +0800)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 20:01:34 +0000 (21:01 +0100)
commita93a198c5bc6799c366866e2bcfc9690dd023c81
tree97f4572760ca47a49d720d43e511c45dbd653fcd
parentdd8d03ba4401231d72c39ec3537f38779ba764df
ivfparse: Check the data size against IVF_FRAME_HEADER_SIZE

It is parsing frame data and so should check the data size against the
frame header size instead of the file header size. If don't, it is
possible to drop the last frame because IVF_FILE_HEADER_SIZE is greater
than IVF_FRAME_HEADER_SIZE
gst/ivfparse/gstivfparse.c