Fix transcoding crashes caused by old code

Authored by mardelle on May 4 2019, 5:07 PM.