media: dvb: Add meta-data buffer size check for decoder pull mode
Decoder filter notifies PES / frame via mpq_streambuffer by
adding a new meta-data packet to the meta-data buffer.
Pull mode logic verifies there is enough space in the data buffer of
the mpq_streambuffer but there is no check of the meta-data buffer.
Consequently, for large data buffers meta-data buffer size might be
too small and overflow can occur.
This change adds a check of the meta-data buffer fullness in pull
mode to prevent overflow.
Change-Id: Icd344df14daaf9f8cfb083b02051fa32af8553e4
Signed-off-by:
Gilad Broner <gbroner@codeaurora.org>
Loading
Please register or sign in to comment