• Jerome Jiang's avatar
    Fix issue for 0 target bitrate in multi-res build. · 519fed01
    Jerome Jiang authored
    For encoding with --enable-multi-res-encoding, with 1 layer, when the
    target bitrate is set 0, under these conditions null pointer
    will be de-referenced. Fix is to check
    cpi->oxcf.mr_total_resolutions > 1. Also added NULL pointer check.
    This issue causes crash for asan build in chromium clusterfuzz.
    
    BUG=805863
    
    Change-Id: I9cd25af631395bc9fede3a12fb68af4021eb15f8
    519fed01