Merge "Fixes a bug for uninitialized frame buffers"

This commit is contained in:
Deb Mukherjee 2014-05-23 11:01:09 -07:00 коммит произвёл Gerrit Code Review
Родитель 52b32ad025 caba78ef49
Коммит 6bfbb691e2
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -386,8 +386,10 @@ static vpx_codec_err_t vp8_decode(vpx_codec_alg_priv_t *ctx,
/* Set these even if already initialized. The caller may have changed the
* decrypt config between frames.
*/
ctx->yv12_frame_buffers.pbi[0]->decrypt_cb = ctx->decrypt_cb;
ctx->yv12_frame_buffers.pbi[0]->decrypt_state = ctx->decrypt_state;
if (ctx->decoder_init) {
ctx->yv12_frame_buffers.pbi[0]->decrypt_cb = ctx->decrypt_cb;
ctx->yv12_frame_buffers.pbi[0]->decrypt_state = ctx->decrypt_state;
}
if (!res)
{