Fixed crash in encoder capture (created may 7)