H264 enc: Restore buffer size if invalid metadata received
authorVolodymyr Babchuk <volodymyr.babchuk@ti.com>
Mon, 18 Jun 2012 09:28:15 +0000 (12:28 +0300)
committerBrijesh Nekkare <b-nekkare@ti.com>
Wed, 20 Jun 2012 07:11:22 +0000 (12:41 +0530)
commit0fd4a3e04b0fc58f851f952a39333a29a714fe8b
tree337d67cb8a1a2d5bb1235888a6e8206cdb212ab9
parentb8753ec2790fa8c9da5cf188b58c80878aef21c0
H264 enc: Restore buffer size if invalid metadata received

LOCAL_PROXY_H264E_EmptyThisBuffer() changes buffer size based on information
from DUCATI. If buffer contains metadata for encoder, buffer size is
inconsistent and wee need to change it back. This was not done if DUCATI passes
invalid metadata type.

This patch ensures, that in any case buffer sizes will be restored.

Change-Id: I17b00da3e5bb07d381f8c3bac07a5d5532a9b17d
Signed-off-by: Volodymyr Babchuk <volodymyr.babchuk@ti.com>
Signed-off-by: Volodymyr Frolov <volodymyr.frolov@ti.com>
omx_proxy_component/omx_h264_enc/src/omx_proxy_h264enc.c