• Yunqing Wang's avatar
    Improve the libvpx encoder test driver · 36664781
    Yunqing Wang authored
    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
encode_test_driver.cc 7.71 KB