ref: 3666478195144bdf207d99877d2005af231a5651
parent: aeeaa679876be7709e55152c979c562787253c49
author: Yunqing Wang <yunqingwang@google.com>
date: Fri Dec 12 09:34:30 EST 2014
Improve the libvpx encoder test driver The encoder initialization is called in EncodeFrame(). Therefore, in the unit tests, the set control is done when video->frame() is 1. This didn't cause problem since current tests mainly test lag_frame > 0 case, or no encoding option that needs to allocate memory before 1st frame is used. If use lag_frame = 0 and encoding multiple tiles, the unit tests crash. The issue is fixed by doing the initialization before encoding frames. Change-Id: I43102048f88448bcf27e9c60e0ec06c176b02e5c