Fix memory corruption issue in mythtranscode. Refs #12228