Avast is scanning the streamed data.

Maybe it wuld be helpful to add youtube.com to the exclusions under settings.