You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function impd_drc_read_uni_drc_gain() uses static variable pkt_loss_frm_cnt to count the number of lost packets and disable DRC if it reaches a certain time. Since it is still a global variable, several decoding threads sharing the same memory space may overwrite that value and cause DRC being disabled for another thread without a reason (or prevent it from being disabled with the counter being reset).
P.S. This seems to be the only instance where a static variable is used in the code and probably it should belong to a decoder context instead.
The text was updated successfully, but these errors were encountered:
The function
impd_drc_read_uni_drc_gain()
uses static variablepkt_loss_frm_cnt
to count the number of lost packets and disable DRC if it reaches a certain time. Since it is still a global variable, several decoding threads sharing the same memory space may overwrite that value and cause DRC being disabled for another thread without a reason (or prevent it from being disabled with the counter being reset).P.S. This seems to be the only instance where a static variable is used in the code and probably it should belong to a decoder context instead.
The text was updated successfully, but these errors were encountered: