codecs: check OMX buffer size before use in (avc|hevc|mpeg2)dec

Bug: 27833616
Change-Id: Ic4045a3f56f53b08d0b1264b2a91b8f43e91b738
(cherry picked from commit 87fdee0bc9e3ac4d2a88ef0a8e150cfdf08c161d)

status_t SoftMPEG2::reInitDecoder() {
 status_t ret;

    deInitDecoder();

    ret = initDecoder();
 if (OK != ret) {
        ALOGE("Create failure");
        deInitDecoder();
 return NO_MEMORY;
 }
 return OK;
}

status_t SoftMPEG2::reInitDecoder() {
 status_t ret;

    deInitDecoder();

    ret = initDecoder();
 if (OK != ret) {
        ALOGE("Create failure");
        deInitDecoder();
 return NO_MEMORY;
 }
 return OK;
}
