[FIX] Check if buffer header exists before restoring buffer size
authorVidhoon Viswanathan <vidhoon@ti.com>
Tue, 26 Jun 2012 06:38:58 +0000 (23:38 -0700)
committerVidhoon Viswanathan <vidhoon@ti.com>
Tue, 26 Jun 2012 07:37:05 +0000 (00:37 -0700)
commit827d4ac882c9e18d927f718eb6317070f39ba434
tree9627a91e7f82b29ce775f7106580ffcbf6e72a50
parentfb9c61ef1f54f30eac80b62e443ce5c9efddd6df
[FIX] Check if buffer header exists before restoring buffer size

In case of receiving invalid metadata, buffer sizes are restored
by the patch http://review.omapzoom.org/#/c/23320

This should be done only if the buffer header structure  is not NULL.
This check was missed by that patch and this patch fixes.

Change-Id: I0e0c896058f18866ec1c20225647f52f136a84a2
Signed-off-by: Vidhoon Viswanathan <vidhoon@ti.com>
omx_proxy_component/omx_h264_enc/src/omx_proxy_h264enc.c