add DPB management if frame loss happens
Merge pull request #720 from huili2/ec_add_ref_mgt

add DPB management if frame loss happens