fixed unguarded video encoder access