• Yaowu Xu's avatar
    Fix an encoder/decode mismatch bug · 4bc7f482
    Yaowu Xu authored
    This commit prevent the encoder to update last_frame_type when a frame
    is dropped in the encoder. Prior to this fix, if there is a dropped
    frame immediatedly after a key frame, decoder would have the value of
    last_frame_type as key frame, different from encoder as the dropped
    frame in encoder would have updated the value to an inter frame. This
    leads to different probability update in encoder and decoder, thereby
    encoder/decoder mismatch.
    
    This fixes issue #941
    
    Change-Id: I27115224b138bec43ae3916c016574f5740822b0
    4bc7f482
vp9_ratectrl.c 63.1 KB